Commit c6576bfa authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Don't emit env.txt in usage help screen :-)

parent 4ac57c98
......@@ -160,7 +160,8 @@ def panic(x):
x += "\n"
sys.stderr.write(x)
g_stageLog.error(g_currentStage)
os.system('env > "' + g_absOutputDir + os.sep + 'env.txt"')
if g_absOutputDir != "":
os.system('env > "' + g_absOutputDir + os.sep + 'env.txt"')
sys.exit(1)
......@@ -175,7 +176,8 @@ def mysystem(x, outputDir=None):
g_log.flush()
while os.system(x) != 0:
# Save the environment that was used for the failed command under OUTPUT_FOLDER/env.txt
os.system('env > "' + g_absOutputDir + os.sep + 'env.txt"')
if g_absOutputDir != "":
os.system('env > "' + g_absOutputDir + os.sep + 'env.txt"')
if g_bRetry:
if os.getenv('CLEANUP') is not None:
print "Exception in user code:"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment