We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5912699 commit bb9b344Copy full SHA for bb9b344
irods/test/scripts/test_support_functions
@@ -1,3 +1,19 @@
1
+irods_server_version() {
2
+ python -c "import irods.helpers as h
3
+import operator,sys
4
+if len(sys.argv) == 1:
5
+ (comparison,relto)=('','')
6
+elif len(sys.argv) == 3:
7
+ (comparison,relto)=sys.argv[1:3]
8
+fm_tuple = lambda tup: '.'.join(str(_) for _ in tup)
9
+to_tuple = lambda vstr: tuple(int(_) for _ in vstr.split('.'))
10
+svt = h.make_session().server_version_without_auth()
11
+if relto:
12
+ exit(0 if vars(operator)[comparison](svt,to_tuple(relto)) else 1)
13
+print(fm_tuple(svt))
14
+" $1 $2
15
+}
16
+
17
SCRIPTDIR=${BASH_SOURCE[0]}
18
up_from_script_dir() {
19
local x incr=""
0 commit comments