diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-03 11:52:07 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-03 11:52:07 (GMT) |
commit | 862a50854740ae40365602f9718eb26bcf16c194 (patch) | |
tree | 2ef9a9aee25de1ab95d0228463fd3f9915a7a11b /devbot/run.py | |
parent | cf40d108c11925550b5dea10d395349b762ce622 (diff) |
Use the new sugar-runner arguments
Diffstat (limited to 'devbot/run.py')
-rw-r--r-- | devbot/run.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/devbot/run.py b/devbot/run.py index 1c01b79..e6699c8 100644 --- a/devbot/run.py +++ b/devbot/run.py @@ -22,15 +22,17 @@ def run_sugar(): print "Cannot run two instances with the same profile." return + args = ["sugar-runner"] + resolution = config.get_pref("RESOLUTION") if resolution: - os.environ["SUGAR_RUNNER_RESOLUTION"] = resolution + args.extend(["--resolution", resolution]) output = config.get_pref("OUTPUT") if output: - os.environ["SUGAR_RUNNER_OUTPUT"] = output + args.extend(["--output", output]) - run(["sugar-runner"]) + run(args) def _get_random_id(): return ''.join(random.choice(string.letters) for i in xrange(8)) |