From fcf2f0a03d8c928af3f142a10e2a1f8e135853af Mon Sep 17 00:00:00 2001 From: nachocano Date: Sat, 6 Dec 2014 15:22:29 -0800 Subject: [PATCH] to stderr --- test/speed_runner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/speed_runner.py b/test/speed_runner.py index a8951fc66..a5c459d82 100644 --- a/test/speed_runner.py +++ b/test/speed_runner.py @@ -1,5 +1,6 @@ import os import argparse +import sys def main(): parser = argparse.ArgumentParser(description='TODO') @@ -17,7 +18,8 @@ def main(): for machine in machines: host_file = os.path.join(args.host_dir, 'hosts%d' % machine) cmd = 'python %s %d %s %s %d %d' % (args.submit_script, machine, host_file, args.executable, data, nrepeat[i]) - print 'data=%d, repeat=%d, machine=%d' % (data, nrepeat[i], machine) + sys.stderr.write('data=%d, repeat=%d, machine=%d\n' % (data, nrepeat[i], machine)) + sys.stderr.flush() os.system(cmd) if __name__ == "__main__":