From 5177e11e24b08c6a53215b59fe1ac25141763429 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 21 Oct 2016 13:40:35 -0700 Subject: support pass test files with -O plus a level, like -O1, -Os, etc. --- auto_update_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auto_update_tests.py') 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): -- cgit v1.2.3