Changeset 172829 in webkit


Ignore:
Timestamp:
Aug 21, 2014 5:29:37 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Fix countFailures of RunLLINTCLoopTests and Run32bitJSCTests.
https://bugs.webkit.org/show_bug.cgi?id=136125

Patch by Renato Nagy <nagy.renato@stud.u-szeged.hu> on 2014-08-21
Reviewed by Csaba Osztrogonác.

  • BuildSlaveSupport/build.webkit.org-config/master.cfg:

(RunLLINTCLoopTests.countFailures):
(Run32bitJSCTests.countFailures):

  • BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:

(RunLLINTCLoopTestsTest):
(RunLLINTCLoopTestsTest.assertResults):
(RunLLINTCLoopTestsTest.test_failures):
(RunLLINTCLoopTestsTest.test_failure):
(RunLLINTCLoopTestsTest.test_no_failure):
(Run32bitJSCTestsTest):
(Run32bitJSCTestsTest.assertResults):
(Run32bitJSCTestsTest.test_failures):
(Run32bitJSCTestsTest.test_failure):
(Run32bitJSCTestsTest.test_no_failure):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/master.cfg

    r172748 r172829  
    553553    def countFailures(self, cmd):
    554554        logText = cmd.logs['stdio'].getText()
    555         # We're looking for the line that looks like this: 0 regressions found.\n0 tests fixed.
    556         regex = re.compile(r'(?P<count>\d+) regressions found.')
     555        # We're looking for the line that looks like this: 0 regressions found.
     556        regex = re.compile(r'(?P<count>\d+) regressions? found.')
    557557        for line in logText.splitlines():
    558558            match = regex.match(line)
     
    572572    def countFailures(self, cmd):
    573573        logText = cmd.logs['stdio'].getText()
    574         # We're looking for the line that looks like this: 0 regressions found.\n0 tests fixed.
    575         regex = re.compile(r'(?P<count>\d+) regressions found.')
     574        # We're looking for the line that looks like this: 0 failures found.
     575        regex = re.compile(r'(?P<count>\d+) failures? found.')
    576576        for line in logText.splitlines():
    577577            match = regex.match(line)
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py

    r172748 r172829  
    143143
    144144
     145class RunLLINTCLoopTestsTest(unittest.TestCase):
     146    def assertResults(self, expected_result, expected_text, rc, stdio):
     147        cmd = StubRemoteCommand(rc, stdio)
     148        step = RunLLINTCLoopTests()
     149        step.commandComplete(cmd)
     150        actual_results = step.evaluateCommand(cmd)
     151        actual_text = step.getText2(cmd, actual_results)
     152
     153        self.assertEqual(expected_result, actual_results)
     154        self.assertEqual(actual_text, expected_text)
     155
     156    def test_failures(self):
     157        self.assertResults(FAILURE, ['5 regressions found.'], 1,  '5 regressions found.')
     158
     159    def test_failure(self):
     160        self.assertResults(FAILURE, ['1 regressions found.'], 1,  '1 regression found.')
     161
     162    def test_no_failure(self):
     163        self.assertResults(SUCCESS, ['webkit-jsc-cloop-test'], 0,  '0 regressions found.')
     164
     165
     166class Run32bitJSCTestsTest(unittest.TestCase):
     167    def assertResults(self, expected_result, expected_text, rc, stdio):
     168        cmd = StubRemoteCommand(rc, stdio)
     169        step = Run32bitJSCTests()
     170        step.commandComplete(cmd)
     171        actual_results = step.evaluateCommand(cmd)
     172        actual_text = step.getText2(cmd, actual_results)
     173
     174        self.assertEqual(expected_result, actual_results)
     175        self.assertEqual(actual_text, expected_text)
     176
     177    def test_failures(self):
     178        self.assertResults(FAILURE, ['5 regressions found.'], 1,  '5 failures found.')
     179
     180    def test_failure(self):
     181        self.assertResults(FAILURE, ['1 regressions found.'], 1,  '1 failure found.')
     182
     183    def test_no_failure(self):
     184        self.assertResults(SUCCESS, ['webkit-32bit-jsc-test'], 0,  '0 failures found.')
     185
     186
    145187class RunUnitTestsTest(unittest.TestCase):
    146188    def assertFailures(self, expected_failure_count, stdio):
  • trunk/Tools/ChangeLog

    r172825 r172829  
     12014-08-21  Renato Nagy  <nagy.renato@stud.u-szeged.hu>
     2
     3        Fix countFailures of RunLLINTCLoopTests and Run32bitJSCTests.
     4        https://bugs.webkit.org/show_bug.cgi?id=136125
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        * BuildSlaveSupport/build.webkit.org-config/master.cfg:
     9        (RunLLINTCLoopTests.countFailures):
     10        (Run32bitJSCTests.countFailures):
     11        * BuildSlaveSupport/build.webkit.org-config/mastercfg_unittest.py:
     12        (RunLLINTCLoopTestsTest):
     13        (RunLLINTCLoopTestsTest.assertResults):
     14        (RunLLINTCLoopTestsTest.test_failures):
     15        (RunLLINTCLoopTestsTest.test_failure):
     16        (RunLLINTCLoopTestsTest.test_no_failure):
     17        (Run32bitJSCTestsTest):
     18        (Run32bitJSCTestsTest.assertResults):
     19        (Run32bitJSCTestsTest.test_failures):
     20        (Run32bitJSCTestsTest.test_failure):
     21        (Run32bitJSCTestsTest.test_no_failure):
     22
    1232014-08-20  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    224
Note: See TracChangeset for help on using the changeset viewer.