Skip to content
Snippets Groups Projects
Commit 07522636 authored by John Chilton's avatar John Chilton
Browse files

Fix job script doctest.

parent dc3808b2
No related branches found
No related tags found
No related merge requests found
...@@ -62,12 +62,10 @@ def job_script(template=DEFAULT_JOB_FILE_TEMPLATE, **kwds): ...@@ -62,12 +62,10 @@ def job_script(template=DEFAULT_JOB_FILE_TEMPLATE, **kwds):
True True
>>> 'GALAXY_LIB="None"' in script >>> 'GALAXY_LIB="None"' in script
True True
>>> script.startswith('#!/bin/bash\\n\\n# The following block can be used by the job system') >>> script.startswith('#!/bin/sh\\n#PBS -test\\n')
True
>>> 'PBS -test\\n' in script
False False
>>> script = job_script(working_directory='wd', command='uptime', exit_code_path='ec', headers='#PBS -test', integrity_injection='') >>> script = job_script(working_directory='wd', command='uptime', exit_code_path='ec', headers='#PBS -test')
>>> script.startswith('#!/bin/bash\\n\\n#PBS -test') >>> script.startswith('#!/bin/bash\\n\\n#PBS -test\\n')
True True
>>> script = job_script(working_directory='wd', command='uptime', exit_code_path='ec', slots_statement='GALAXY_SLOTS="$SLURM_JOB_NUM_NODES"') >>> script = job_script(working_directory='wd', command='uptime', exit_code_path='ec', slots_statement='GALAXY_SLOTS="$SLURM_JOB_NUM_NODES"')
>>> script.find('GALAXY_SLOTS="$SLURM_JOB_NUM_NODES"\\nexport GALAXY_SLOTS\\n') > 0 >>> script.find('GALAXY_SLOTS="$SLURM_JOB_NUM_NODES"\\nexport GALAXY_SLOTS\\n') > 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment