mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
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:
parent
d4fe48fae4
commit
ab3461b63d
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user