[webkit-changes] [WebKit/WebKit] 7df0ea: Use a mock git for most of SummarizedResultsTest

Sam Sneddon noreply at github.com
Thu Feb 1 15:33:36 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7df0ea213a3fa40674ca325726f5ba089d44f7e8
      https://github.com/WebKit/WebKit/commit/7df0ea213a3fa40674ca325726f5ba089d44f7e8
  Author: Sam Sneddon <gsnedders at apple.com>
  Date:   2024-02-01 (Thu, 01 Feb 2024)

  Changed paths:
    M Tools/Scripts/webkitpy/layout_tests/models/test_run_results_unittest.py

  Log Message:
  -----------
  Use a mock git for most of SummarizedResultsTest
https://bugs.webkit.org/show_bug.cgi?id=268510

Reviewed by Jonathan Bedard.

None of these tests actually are looking at the output from git
whatsoever, and with many remotes and branches actually querying git can
be slow, so just use a mock git object instead.

Lastly, mark the one test that still uses real git as slow.

* Tools/Scripts/webkitpy/layout_tests/models/test_run_results_unittest.py:
(SummarizedResultsTest.test_no_git_revision):
(SummarizedResultsTest.test_summarized_results_wontfix):
(SummarizedResultsTest.test_summarized_results_include_passes):
(SummarizedResultsTest.test_summarized_results_world_leaks_disabled):
(SummarizedResultsTest.test_summarized_run_metadata):
(SummarizedResultsTest.test_git_revision_exists): Deleted.

Canonical link: https://commits.webkit.org/273948@main




More information about the webkit-changes mailing list