Browse files

Fix stdout flushing: shebang options are not supported by all operati…

…ng systems.
  • Loading branch information...
1 parent e37091c commit 9b9e2ea308c6e57eeb7d97edb8bea09169aef195 @jone jone committed May 21, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 jenkins-run.py
View
3 jenkins-run.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python -u
+#!/usr/bin/env python
"""This script is called by a jenkins job.
The job of the script is to install the package (current directory)
@@ -210,6 +210,7 @@ def runcmd(command):
"""Execute a command and return the actual exit code.
"""
print '+ %s' % command
+ sys.stdout.flush()
return os.system(command) >> 8

0 comments on commit 9b9e2ea

Please sign in to comment.