Skip to content

Commit ab3461b

Browse files
authored
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 [email protected]
1 parent d4fe48f commit ab3461b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/runners/run-test-suite-test262.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def main(args):
113113
universal_newlines=True,
114114
stdout=subprocess.PIPE)
115115

116-
return_code = 0
116+
return_code = 1
117117
with open(os.path.join(os.path.dirname(args.engine), 'test262.report'), 'w') as output_file:
118118
counter = 0
119119
summary_found = False
@@ -132,8 +132,8 @@ def main(args):
132132

133133
if summary_found:
134134
print(output, end='')
135-
if ('Failed tests' in output) or ('Expected to fail but passed' in output):
136-
return_code = 1
135+
if 'All tests succeeded' in output:
136+
return_code = 0
137137

138138
proc.wait()
139139

0 commit comments

Comments
 (0)