summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-xauto_update_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index 52db30a24..08d0a3e32 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -174,10 +174,11 @@ for t in os.listdir('test'):
if t.endswith('.wast') and not t.startswith('spec'):
print '..', t
t = os.path.join('test', t)
+ f = t + '.from-wast'
cmd = [os.path.join('bin', 'wasm-opt'), t, '--print']
actual = run_command(cmd)
actual = actual.replace('printing before:\n', '')
- open(t, 'w').write(actual)
+ open(f, 'w').write(actual)
print '\n[ checking wasm-dis on provided binaries... ]\n'