summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xauto_update_tests.py2
-rwxr-xr-xcheck.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/auto_update_tests.py b/auto_update_tests.py
index a2d165802..63590f6cc 100755
--- a/auto_update_tests.py
+++ b/auto_update_tests.py
@@ -77,7 +77,7 @@ for t in sorted(os.listdir(os.path.join('test', 'passes'))):
if t.endswith('.wast'):
print '..', t
passname = os.path.basename(t).replace('.wast', '')
- opts = ['-O'] if passname == 'O' else ['--' + p for p in passname.split('_')]
+ opts = ['-' + passname] if passname.startswith('O') else ['--' + p for p in passname.split('_')]
t = os.path.join('test', 'passes', t)
actual = ''
for module, asserts in split_wast(t):
diff --git a/check.py b/check.py
index 528bc34cb..d6b1dc601 100755
--- a/check.py
+++ b/check.py
@@ -336,7 +336,7 @@ for t in sorted(os.listdir(os.path.join(options.binaryen_test, 'passes'))):
if t.endswith('.wast'):
print '..', t
passname = os.path.basename(t).replace('.wast', '')
- opts = ['-O'] if passname == 'O' else ['--' + p for p in passname.split('_')]
+ opts = ['-' + passname] if passname.startswith('O') else ['--' + p for p in passname.split('_')]
t = os.path.join(options.binaryen_test, 'passes', t)
actual = ''
for module, asserts in split_wast(t):