Skip to content

Commit 5e2487f

Browse files
committed
specify xrootd epoch=1 (SOFTWARE-3485)
the version comparison was broken before because xrootd EVRs are at epoch 1
1 parent 518a575 commit 5e2487f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

osgtest/tests/test_150_xrootd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_01_start_xrootd(self):
6363
owner="xrootd",
6464
chown=(user.pw_uid, user.pw_gid))
6565

66-
if core.PackageVersion('xrootd') < '4.9.0':
66+
if core.PackageVersion('xrootd') < '1:4.9.0':
6767
files.append(core.config['xrootd.config'],
6868
XROOTD_CFG_TEXT % (sec_protocol, core.config['xrootd.port']),
6969
owner='xrootd', backup=True)
@@ -79,15 +79,15 @@ def test_01_start_xrootd(self):
7979
def test_02_configure_hdfs(self):
8080
core.skip_ok_unless_installed('xrootd-hdfs')
8181
hdfs_config = "ofs.osslib /usr/lib64/libXrdHdfs.so"
82-
if core.PackageVersion('xrootd') < '4.9.0':
82+
if core.PackageVersion('xrootd') < '1:4.9.0':
8383
files.append(core.config['xrootd.config'], hdfs_config, backup=False)
8484
else:
8585
files.append(core.config['xrootd.config-extra'], hdfs_config, backup=False)
8686

8787
def test_03_configure_multiuser(self):
8888
core.skip_ok_unless_installed('xrootd-multiuser','globus-proxy-utils', by_dependency=True)
8989
xrootd_multiuser_conf = "xrootd.fslib libXrdMultiuser.so default"
90-
if core.PackageVersion('xrootd') < '4.9.0':
90+
if core.PackageVersion('xrootd') < '1:4.9.0':
9191
files.append(core.config['xrootd.config'], xrootd_multiuser_conf, owner='xrootd', backup=False)
9292
else:
9393
files.append(core.config['xrootd.config-extra'], xrootd_multiuser_conf, owner='xrootd', backup=False)

osgtest/tests/test_840_xrootd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class TestStopXrootd(osgunittest.OSGTestCase):
77

88
def test_01_stop_xrootd(self):
99
if core.state['xrootd.backups-exist']:
10-
if core.PackageVersion('xrootd') < '4.9.0':
10+
if core.PackageVersion('xrootd') < '1:4.9.0':
1111
files.restore(core.config['xrootd.config'], "xrootd")
1212
else:
1313
files.restore(core.config['xrootd.config-extra'], "xrootd")

0 commit comments

Comments
 (0)