fix output

This commit is contained in:
Alex Groce
2018-07-13 21:27:38 -07:00
parent 3a35a44496
commit 476cdd97fd
+2 -2
View File
@@ -4,9 +4,9 @@ import time
import sys
def logrun(cmd, file, timeout):
sys.stderr.write("=" * 80 + "\n")
sys.stderr.write("\n\n" + ("=" * 80) + "\n")
sys.stderr.write("RUNNING: ")
sys.stderr.write(str(cmd) + "\n")
sys.stderr.write(" ".join(cmd) + "\n")
sys.stderr.flush()
with open(file, 'w') as outf:
p = subprocess.Popen(cmd, stdout=outf, stderr=outf)