summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/check.py b/check.py
index f1994a791..680ce63a1 100755
--- a/check.py
+++ b/check.py
@@ -331,15 +331,18 @@ def run_unittest():
def run_lit():
- lit_script = os.path.join(shared.options.binaryen_bin, 'binaryen-lit')
- lit_tests = os.path.join(shared.options.binaryen_root, 'test', 'lit')
- # lit expects to be run as its own executable
- cmd = [sys.executable, lit_script, lit_tests, '-vv']
- result = subprocess.run(cmd)
- if result.returncode != 0:
- shared.num_failures += 1
- if shared.options.abort_on_first_failure and shared.num_failures:
- raise Exception("lit test failed")
+ def run():
+ lit_script = os.path.join(shared.options.binaryen_bin, 'binaryen-lit')
+ lit_tests = os.path.join(shared.options.binaryen_root, 'test', 'lit')
+ # lit expects to be run as its own executable
+ cmd = [sys.executable, lit_script, lit_tests, '-vv']
+ result = subprocess.run(cmd)
+ if result.returncode != 0:
+ shared.num_failures += 1
+ if shared.options.abort_on_first_failure and shared.num_failures:
+ raise Exception("lit test failed")
+
+ shared.with_pass_debug(run)
TEST_SUITES = OrderedDict([