summaryrefslogtreecommitdiff
path: root/auto_update_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'auto_update_tests.py')
-rwxr-xr-xauto_update_tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index 6f87234f9..ab85c2efb 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -110,6 +110,8 @@ for t in sorted(os.listdir(os.path.join('test', 'passes'))):
print '..', t
binary = '.wasm' in t
passname = os.path.basename(t).replace('.wast', '').replace('.wasm', '')
+ if passname.isdigit():
+ passname = open(os.path.join('test', 'passes', passname + '.passes')).read().strip()
opts = [('--' + p if not p.startswith('O') else '-' + p) for p in passname.split('_')]
t = os.path.join('test', 'passes', t)
actual = ''