commit ea34326146a4dcd27022637baecfe3904b464d86
parent 3ec90aebd924a8a7e9f9f390b64c1c797fd4f9b6
Author: Sam Sneddon <gsnedders@apple.com>
Date: Fri, 31 Oct 2025 08:54:14 +0000
Bug 1996669 [wpt PR 55690] - Fix macos-display-configuration options, a=testonly
Automatic update from web-platform-tests
Fix macos-display-configuration options
These were inverted, and thus we ended up not doing anything. On the
bots this wasn't noticed because they're not restored often, but on
more ephemeral bots this is very apparent.
--
wpt-commits: 7705f9c12fb571f5cbe8286f4e535412c7a0d845
wpt-pr: 55690
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/testing/web-platform/tests/tools/ci/macos_display_configuration.py b/testing/web-platform/tests/tools/ci/macos_display_configuration.py
@@ -213,11 +213,13 @@ def create_parser() -> argparse.ArgumentParser:
parser.add_argument(
"--no-color-profile",
action="store_false",
+ dest="color_profile",
help="Don't set color profiles",
)
parser.add_argument(
"--no-display-mode",
action="store_false",
+ dest="display_mode",
help="Don't set display mode",
)
parser.add_argument(
@@ -232,8 +234,8 @@ def run(venv: Any, **kwargs: Any) -> None:
profile_url = NSURL.fileURLWithPath_(kwargs["profile_path"])
dry_run = kwargs["dry_run"]
- if not kwargs["no_color_profile"]:
+ if kwargs["color_profile"]:
set_color_profiles(profile_url, dry_run=dry_run)
- if not kwargs["no_display_mode"]:
+ if kwargs["display_mode"]:
set_display_modes(dry_run=dry_run)