Commit 962e3473 by Jamie Madill Committed by Commit Bot

Fix return code of restricted trace tests.

The prior script was incorrectly comparing a boolean result with a number and producing the opposite result: True would be reported as a failure, and False would be reported as success. Bug: angleproject:4090 Bug: b/168049670 Change-Id: I47ec684a57c455c6a833232d0a49774b265f7b39 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2430667Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 69da0b92
...@@ -131,10 +131,12 @@ def main(): ...@@ -131,10 +131,12 @@ def main():
tests = json.load(fp) tests = json.load(fp)
if args.render_test_output_dir: if args.render_test_output_dir:
rc = run_tests(args, tests, extra_flags, env, args.render_test_output_dir) if not run_tests(args, tests, extra_flags, env, args.render_test_output_dir):
rc = 1
else: else:
with temporary_dir('angle_trace_') as temp_dir: with temporary_dir('angle_trace_') as temp_dir:
rc = run_tests(args, tests, extra_flags, env, temp_dir) if not run_tests(args, tests, extra_flags, env, temp_dir):
rc = 1
except Exception: except Exception:
traceback.print_exc() traceback.print_exc()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment