From c9766d61d99cb64e47a1f30ee2fbc94aee5d28ab Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Thu, 27 Dec 2012 18:53:16 +0000 Subject: Always run tests in a virtual server --- (limited to 'devbot') diff --git a/devbot/run.py b/devbot/run.py index 038775b..3bb1920 100644 --- a/devbot/run.py +++ b/devbot/run.py @@ -35,15 +35,15 @@ def run(command): os.execlp(args[0], *args) -def run_test(command, test_path, virtual=False): +def run_test(command, test_path): environ.setup() temp_dir = tempfile.mkdtemp("sugar-build-test") display_path = os.path.join(temp_dir, "display") - args = [command, "--display-path", display_path] - if virtual: - args.append("--virtual") + args = [command, + "--display-path", display_path, + "--virtual"] command_process = subprocess.Popen(args, stdout=subprocess.PIPE) -- cgit v0.9.1