Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ef97d89d09d3a684677f12e74cfaaf96f06a642a
https://github.com/WebKit/WebKit/commit/ef97d89d09d3a684677f12e74cfaaf96f06a642a
Author: Brianna Fan <[email protected]>
Date: 2025-09-19 (Fri, 19 Sep 2025)
Changed paths:
M Tools/Scripts/libraries/webkitcorepy/webkitcorepy/mocks/popen.py
M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py
M Tools/Scripts/webkitpy/w3c/test_exporter.py
Log Message:
-----------
[export-w3c-test-changes] should gracefully handle the 'nothing to commit'
case
https://bugs.webkit.org/show_bug.cgi?id=298688
rdar://160325435
Reviewed by Sam Sneddon.
If there are no changes to commit, we shouldn't fail the script.
Instead, we just exit early.
* Tools/Scripts/libraries/webkitcorepy/webkitcorepy/mocks/popen.py:
(PopenBase.__init__): Add mock support for setting stderr to stdout.
Reformat the logic to be more easily read.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py:
- Add mocks for new commands: `git commit -m`, `git add --all`, and `git
diff --cached --quiet`.
* Tools/Scripts/webkitpy/w3c/test_exporter.py:
(WebPlatformTestExporter._run_wpt_git):
- Add support for passing in stderr.
(WebPlatformTestExporter.create_branch_with_patch):
- Also add error handling to applying the patch and only print stdout if it
fails.
(WebPlatformTestExporter.delete_local_branch):
- Suppress some logging to make the script output clearer.
Canonical link: https://commits.webkit.org/300242@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes