diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-21 16:41:58 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-21 16:41:58 -0800 |
commit | 0abd164bcb5c8fe0c2ff2b9d69a5b39519e64573 (patch) | |
tree | 8e84d61d212abbde5443b069206e6cfd951c11ad /auto_update_tests.py | |
parent | 3e342a74b272a2d395b00b8d1e73d54ab29d4d0e (diff) | |
download | binaryen-0abd164bcb5c8fe0c2ff2b9d69a5b39519e64573.tar.gz binaryen-0abd164bcb5c8fe0c2ff2b9d69a5b39519e64573.tar.bz2 binaryen-0abd164bcb5c8fe0c2ff2b9d69a5b39519e64573.zip |
improve auto updater
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-x | auto_update_tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py index ea624a689..2e325ed94 100755 --- a/auto_update_tests.py +++ b/auto_update_tests.py @@ -53,7 +53,9 @@ for wasm in ['address.wast']:#os.listdir(os.path.join('test', 'spec')): if wasm.endswith('.wast'): print '..', wasm asm = wasm.replace('.wast', '.2asm.js') - actual, err = subprocess.Popen([os.path.join('bin', 'wasm2asm'), os.path.join('test', 'spec', wasm)], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() + proc = subprocess.Popen([os.path.join('bin', 'wasm2asm'), os.path.join('test', 'spec', wasm)], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + actual, err = proc.communicate() + assert proc.returncode == 0, err assert err == '', 'bad err:' + err expected_file = os.path.join('test', asm) open(expected_file, 'w').write(actual) |