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

Fix doctests...

parent 6213ee60
No related branches found
No related tags found
No related merge requests found
#!$shell #!$shell
$integrity_injection $integrity_injection
$headers $headers
$slots_statement $slots_statement
......
...@@ -62,10 +62,12 @@ def job_script(template=DEFAULT_JOB_FILE_TEMPLATE, **kwds): ...@@ -62,10 +62,12 @@ 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/sh\\n#PBS -test\\n') >>> script.startswith('#!/bin/bash\\n\\n# The following block can be used by the job system')
True
>>> 'PBS -test\\n' in script
False False
>>> script = job_script(working_directory='wd', command='uptime', exit_code_path='ec', headers='#PBS -test') >>> script = job_script(working_directory='wd', command='uptime', exit_code_path='ec', headers='#PBS -test', integrity_injection='')
>>> script.startswith('#!/bin/sh\\n#PBS -test\\n') >>> 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