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:
committed by
GitHub
parent
d4fe48fae4
commit
ab3461b63d
@@ -113,7 +113,7 @@ def main(args):
|
|||||||
universal_newlines=True,
|
universal_newlines=True,
|
||||||
stdout=subprocess.PIPE)
|
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:
|
with open(os.path.join(os.path.dirname(args.engine), 'test262.report'), 'w') as output_file:
|
||||||
counter = 0
|
counter = 0
|
||||||
summary_found = False
|
summary_found = False
|
||||||
@@ -132,8 +132,8 @@ def main(args):
|
|||||||
|
|
||||||
if summary_found:
|
if summary_found:
|
||||||
print(output, end='')
|
print(output, end='')
|
||||||
if ('Failed tests' in output) or ('Expected to fail but passed' in output):
|
if 'All tests succeeded' in output:
|
||||||
return_code = 1
|
return_code = 0
|
||||||
|
|
||||||
proc.wait()
|
proc.wait()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user