aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/try_parser.py
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-02-08 12:40:15 +0100
committerGitHub <noreply@github.com>2024-02-08 11:40:15 +0000
commit5facf436f6835aa53a500ae99168b8a00ed4802c (patch)
tree9af0603e5e76781ef397c2063a1b46389b6e5be4 /python/servo/try_parser.py
parent3620cfe2dd9e31e04663420fc5bd29421b33ede3 (diff)
downloadservo-5facf436f6835aa53a500ae99168b8a00ed4802c.tar.gz
servo-5facf436f6835aa53a500ae99168b8a00ed4802c.zip
mach: Make `./mach try` a little friendlier (#31290)
1. Move `./mach try` to `testing_commands.py which is a bit more consistent. 2. Make `./mach try` print out the remote name always and properly form the URL for ssh repositories. 3. Print out the try configuration matrix to make it more obvious what is being triggered remotely. 4. Better error handling. Print and error and exit if the remote isn't on GitHub and also clean up properly if something fails after making the temporary commit.
Diffstat (limited to 'python/servo/try_parser.py')
-rw-r--r--python/servo/try_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/servo/try_parser.py b/python/servo/try_parser.py
index 6d4a3a7fb3d..498e6c4717a 100644
--- a/python/servo/try_parser.py
+++ b/python/servo/try_parser.py
@@ -128,8 +128,8 @@ class Config(object):
else:
self.matrix.append(preset)
- def to_json(self) -> str:
- return json.dumps(self, cls=Encoder)
+ def to_json(self, **kwargs) -> str:
+ return json.dumps(self, cls=Encoder, **kwargs)
def main():