aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorsagudev <16504129+sagudev@users.noreply.github.com>2025-04-09 13:23:27 +0200
committerGitHub <noreply@github.com>2025-04-09 11:23:27 +0000
commit15cac97adab041269c45c4baf400241b18f5f37d (patch)
treeac3ebf277f31d35324989329010170608c4ace48 /python
parent9c29acd6d85b467bb21665aef9babe2cf8fd4887 (diff)
downloadservo-15cac97adab041269c45c4baf400241b18f5f37d.tar.gz
servo-15cac97adab041269c45c4baf400241b18f5f37d.zip
mach try: Add `wpt` alias for `linux-wpt` (#36416)
Add `wpt` alias for `linux-wpt` in try_parser, because that's the what I have in muscle memory. Testing: Tested with new try_parser unit tests. Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'python')
-rw-r--r--python/servo/try_parser.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/servo/try_parser.py b/python/servo/try_parser.py
index edbea49ce7b..79f2989f10d 100644
--- a/python/servo/try_parser.py
+++ b/python/servo/try_parser.py
@@ -154,6 +154,9 @@ class Config(object):
if word in ["fail-fast", "failfast", "fail_fast"]:
self.fail_fast = True
continue # skip over keyword
+ if word == "wpt":
+ words.extend(["linux-wpt"])
+ continue # skip over keyword
if word == "full":
words.extend(["linux-unit-tests", "linux-wpt", "linux-bencher"])
words.extend(["macos-unit-tests", "windows-unit-tests", "android", "ohos", "lint"])
@@ -318,6 +321,10 @@ class TestParser(unittest.TestCase):
self.assertDictEqual(json.loads(Config("full").to_json()),
json.loads(Config("").to_json()))
+ def test_wpt_alias(self):
+ self.assertDictEqual(json.loads(Config("wpt").to_json()),
+ json.loads(Config("linux-wpt").to_json()))
+
def run_tests():
verbosity = 1 if logging.getLogger().level >= logging.WARN else 2