mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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>
This commit is contained in:
parent
9c29acd6d8
commit
15cac97ada
1 changed files with 7 additions and 0 deletions
|
@ -154,6 +154,9 @@ class Config(object):
|
||||||
if word in ["fail-fast", "failfast", "fail_fast"]:
|
if word in ["fail-fast", "failfast", "fail_fast"]:
|
||||||
self.fail_fast = True
|
self.fail_fast = True
|
||||||
continue # skip over keyword
|
continue # skip over keyword
|
||||||
|
if word == "wpt":
|
||||||
|
words.extend(["linux-wpt"])
|
||||||
|
continue # skip over keyword
|
||||||
if word == "full":
|
if word == "full":
|
||||||
words.extend(["linux-unit-tests", "linux-wpt", "linux-bencher"])
|
words.extend(["linux-unit-tests", "linux-wpt", "linux-bencher"])
|
||||||
words.extend(["macos-unit-tests", "windows-unit-tests", "android", "ohos", "lint"])
|
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()),
|
self.assertDictEqual(json.loads(Config("full").to_json()),
|
||||||
json.loads(Config("").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():
|
def run_tests():
|
||||||
verbosity = 1 if logging.getLogger().level >= logging.WARN else 2
|
verbosity = 1 if logging.getLogger().level >= logging.WARN else 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue