Changeset 222856 in webkit


Ignore:
Timestamp:
Oct 4, 2017, 10:34:45 AM (8 years ago)
Author:
Jonathan Bedard
Message:

webkitpy.tool.steps.steps_unittest.StepsTest.test_runtests_api is flakey
https://bugs.webkit.org/show_bug.cgi?id=177751
<rdar://problem/34769470>

Reviewed by Daniel Bates.

Port._build_path() calls Tools/Scripts/webkit-build-directory and caches this
result. When capturing output from the MockExecutive, the first invocation of
Port._build_path() will log the running of Tools/Scripts/webkit-build-directory
but subsequent invocations will not.

  • Scripts/webkitpy/tool/steps/steps_unittest.py:

(StepsTest):
(StepsTest.setUp): Cache the build path before running tests.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r222851 r222856  
     12017-10-04  Jonathan Bedard  <jbedard@apple.com>
     2
     3        webkitpy.tool.steps.steps_unittest.StepsTest.test_runtests_api is flakey
     4        https://bugs.webkit.org/show_bug.cgi?id=177751
     5        <rdar://problem/34769470>
     6
     7        Reviewed by Daniel Bates.
     8
     9        Port._build_path() calls Tools/Scripts/webkit-build-directory and caches this
     10        result. When capturing output from the MockExecutive, the first invocation of
     11        Port._build_path() will log the running of Tools/Scripts/webkit-build-directory
     12        but subsequent invocations will not.
     13
     14        * Scripts/webkitpy/tool/steps/steps_unittest.py:
     15        (StepsTest):
     16        (StepsTest.setUp): Cache the build path before running tests.
     17
    1182017-10-04  Carlos Alberto Lopez Perez  <clopez@igalia.com>
    219
  • trunk/Tools/Scripts/webkitpy/tool/steps/steps_unittest.py

    r221926 r222856  
    3939
    4040class StepsTest(unittest.TestCase):
     41
     42    def setUp(self):
     43        # Port._build_path() calls Tools/Scripts/webkit-build-directory and caches the result. When capturing output,
     44        # this can cause the first invocation of Port._build_path() to have more output than subsequent invocations.
     45        # This may cause test flakiness when test order changes. By explicitly calling Port._build_path() before running
     46        # tests in this suite, we avoid such flakiness.
     47        MockTool().port_factory.get(options=self._step_options())._build_path()
     48
    4149    def _step_options(self):
    4250        options = MockOptions()
Note: See TracChangeset for help on using the changeset viewer.