From 0003c5e103905bac119442ad240f8dc2aff33bc0 Mon Sep 17 00:00:00 2001 From: Steve Fink Date: Mon, 10 Oct 2011 15:06:28 -0700 Subject: [PATCH] Bug 692987 - Add -d flag to xpcshell to run with JSD enabled (r=ted) --HG-- extra : rebase_source : d4523272a006767e6928c8fb32b7fdd7577210d5 --- testing/xpcshell/runxpcshelltests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testing/xpcshell/runxpcshelltests.py b/testing/xpcshell/runxpcshelltests.py index ecda7556ee2..9f1df404891 100644 --- a/testing/xpcshell/runxpcshelltests.py +++ b/testing/xpcshell/runxpcshelltests.py @@ -502,11 +502,15 @@ class XPCShellTests(object): # The test file will have to be loaded after the head files. cmdT = self.buildCmdTestFile(name) + args = self.xpcsRunArgs + if 'debug' in test: + args.insert(0, '-d') + try: self.log.info("TEST-INFO | %s | running test ..." % name) startTime = time.time() - proc = self.launchProcess(cmdH + cmdT + self.xpcsRunArgs, + proc = self.launchProcess(cmdH + cmdT + args, stdout=pStdout, stderr=pStderr, env=self.env, cwd=testdir) # Allow user to kill hung subprocess with SIGINT w/o killing this script