From 3b087d406adf205999943dcda71b3245c41554e9 Mon Sep 17 00:00:00 2001 From: Simon Martin Date: Sun, 8 Nov 2015 14:48:02 +0100 Subject: [PATCH] Avoid UnboundLocalError upon "bogus" usage of ./mach create-wpt --- python/servo/testing_commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 91e7fb09089..b362ee50037 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -598,4 +598,5 @@ testing/web-platform/mozilla/tests for Servo-only tests""" % ref_path) wpt_kwargs = vars(p.parse_args(args)) self.context.commands.dispatch("test-wpt", self.context, **wpt_kwargs) - proc.wait() + if editor: + proc.wait()