Fix tools/run-tests.py --test262-es2015 (#3803)

The output of the test262 runner changed between ES5.1 and ES6,
our script should respect it to signal regressions in return code too.

JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
This commit is contained in:
Csaba Osztrogonác 2020-05-28 14:30:49 +02:00 committed by GitHub
parent d4fe48fae4
commit ab3461b63d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ def main(args):
universal_newlines=True,
stdout=subprocess.PIPE)
return_code = 0
return_code = 1
with open(os.path.join(os.path.dirname(args.engine), 'test262.report'), 'w') as output_file:
counter = 0
summary_found = False
@ -132,8 +132,8 @@ def main(args):
if summary_found:
print(output, end='')
if ('Failed tests' in output) or ('Expected to fail but passed' in output):
return_code = 1
if 'All tests succeeded' in output:
return_code = 0
proc.wait()