Skip to content

Commit 3874260

Browse files
committed
Update default Slurm config location for >= 19.05.2
1 parent 186d3f7 commit 3874260

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

osgtest/tests/test_290_slurm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ def slurm_reqs(self):
6565

6666
def test_01_slurm_config(self):
6767
self.slurm_reqs()
68-
core.config['slurm.config'] = '/etc/slurm/slurm.conf'
68+
if core.PackageVersion('slurm') >= '19.05.2':
69+
core.config['slurm.config'] = '/etc/slurm.conf'
70+
else:
71+
core.config['slurm.config'] = '/etc/slurm/slurm.conf'
6972
files.write(core.config['slurm.config'],
7073
SLURM_CONFIG % {'short_hostname': SHORT_HOSTNAME, 'cluster': CLUSTER_NAME, 'ctld_log': CTLD_LOG},
7174
owner='slurm',

0 commit comments

Comments
 (0)