diff options
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-x | auto_update_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py index e62f42f01..08c10a9ee 100755 --- a/auto_update_tests.py +++ b/auto_update_tests.py @@ -83,12 +83,12 @@ for t in sorted(os.listdir(os.path.join('test', 'print'))): wasm = os.path.basename(t).replace('.wast', '') cmd = WASM_OPT + [os.path.join('test', 'print', t), '--print'] print ' ', ' '.join(cmd) - actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() - print cmd, actual, err + actual = subprocess.check_output(cmd) + print cmd, actual with open(os.path.join('test', 'print', wasm + '.txt'), 'w') as o: o.write(actual) cmd = WASM_OPT + [os.path.join('test', 'print', t), '--print-minified'] print ' ', ' '.join(cmd) - actual, err = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() + actual = subprocess.check_output(cmd) with open(os.path.join('test', 'print', wasm + '.minified.txt'), 'w') as o: o.write(actual) for t in sorted(os.listdir(os.path.join('test', 'passes'))): |