Skip to content

Commit a9fb63c

Browse files
authored
Merge pull request #453 from ExaWorks/fix_pbs_check
The entry is there, but is set to `false` when slurm is not detected.
2 parents 26c8815 + 5ed2e2c commit a9fb63c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def _discover_environment(config):
420420
logger.warning('Cannot get git repository information.')
421421
try:
422422
env['has_slurm'] = shutil.which('sbatch') is not None
423-
if 'has_slurm' not in env:
423+
if not env['has_slurm']:
424424
env['has_pbs'] = shutil.which('qsub') is not None
425425
env['has_lsf'] = shutil.which('bsub') is not None
426426
env['has_cobalt'] = shutil.which('cqsub') is not None

0 commit comments

Comments
 (0)