Changeset 215599 in webkit
- Timestamp:
- Apr 20, 2017, 6:49:59 PM (9 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
-
BuildSlaveSupport/build.webkit.org-config/master.cfg (modified) (1 diff)
-
BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py (modified) (1 diff)
-
ChangeLog (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg
r215108 r215599 336 336 def countFailures(self, cmd): 337 337 logText = cmd.logs['stdio'].getText() 338 matches = re.findall(r' \(failed (\d+)\)', logText)338 matches = re.findall(r'^FAIL:', logText, flags=re.MULTILINE) 339 339 if matches: 340 return int(matches[-1])340 return len(matches) 341 341 return 0 342 342 -
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py
r215108 r215599 154 154 def test_no_regressions_output(self): 155 155 self.assertResults(SUCCESS, ["test262-test"], 0, """Using the following jsc path: /WebKitBuild/Release/jsc 156 168/168 """) 156 157 Running test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default 158 Running test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict 159 """) 157 160 158 161 def test_failure_output(self): 159 self.assertResults(FAILURE, ["1 Test262 test failed"], 1, """Using the following jsc path: /WebKitBuild/Release/jsc 160 test262.yaml/test262/test/built-ins/Array/from/iter-set-elem-prop-err.js.default: ERROR: Unexpected exit code: 0 161 test262.yaml/test262/test/built-ins/Array/from/iter-set-elem-prop-err.js.default-strict: ERROR: Unexpected exit code: 0 162 ... 163 43768/43768 (failed 1) """) 162 self.assertResults(FAILURE, ["1 Test262 test failed"], 0, """Using the following jsc path: /WebKitBuild/Release/jsc 163 164 Running test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default 165 Running test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict 166 test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict: ERROR: Unexpected exit code: 0 167 FAIL: test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict 168 """) 164 169 165 170 def test_failures_output(self): 166 self.assertResults(FAILURE, ["75 Test262 tests failed"], 75, """Using the following jsc path: /WebKitBuild/Release/jsc 167 ... 168 43768/43768 (failed 75) """) 171 self.assertResults(FAILURE, ["2 Test262 tests failed"], 0, """Using the following jsc path: /WebKitBuild/Release/jsc 172 173 Running test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default 174 test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default: ERROR: Unexpected exit code: 0 175 FAIL: test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default 176 Running test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict 177 test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict: ERROR: Unexpected exit code: 0 178 FAIL: test262.yaml/test262/test/annexB/built-ins/Date/prototype/getYear/length.js.default-strict 179 """) 169 180 170 181 -
trunk/Tools/ChangeLog
r215598 r215599 1 2017-04-20 Joseph Pecoraro <pecoraro@apple.com> 2 3 Test262 bot does not go red with failures 4 https://bugs.webkit.org/show_bug.cgi?id=171044 5 6 Reviewed by Aakash Jain. 7 8 The piped output of run-jsc-stress-tests is different from 9 its non-piped output. Switch to parsing the correct output. 10 11 * BuildSlaveSupport/build.webkit.org-config/master.cfg: 12 (RunTest262Tests.countFailures): 13 Just count the number of lines that start with "FAIL:". 14 15 * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py: 16 (RunTest262TestsTest.test_no_regressions_output): 17 (test_failure_output): 18 (test_failures_output): 19 Updated tests with new sample output produced partially from bots and 20 locally. In cases of failure the return code of run-jsc-stress-tests 21 is still 0 so update the expected return code in the tests. 22 1 23 2017-04-20 Brady Eidson <beidson@apple.com> 2 24
Note:
See TracChangeset
for help on using the changeset viewer.