Skip to content

Commit

Permalink
Fix a potentially problematic file operation.
Browse files Browse the repository at this point in the history
It might be causing intermittent test failures when running this code in Docker containers, we are unsure.
  • Loading branch information
jmchilton committed Oct 2, 2015
1 parent c7c2695 commit 8af833c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/jobs/runners/local.py
Expand Up @@ -68,7 +68,8 @@ def __command_line( self, job_wrapper ):
'working_directory': job_wrapper.working_directory,
}
job_file_contents = self.get_job_file( job_wrapper, **job_script_props )
open( job_file, 'w' ).write( job_file_contents )
with open( job_file, 'w' ) as f:
f.write( job_file_contents )
os.chmod( job_file, 0o755 )
return job_file, exit_code_path

Expand Down

0 comments on commit 8af833c

Please sign in to comment.