diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-29 17:40:07 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-29 17:40:07 (GMT) |
commit | 747b165600dd1c7787ca0aed73d6f75a69959961 (patch) | |
tree | a3b1ee26422bd44c61ed78a483a70b5b06d35f56 /devbot | |
parent | 1b42be673b2cd237ce873df9f4b0b339aab9518a (diff) |
Pass output and resolution prefs to sugar-runner
Diffstat (limited to 'devbot')
-rw-r--r-- | devbot/run.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/devbot/run.py b/devbot/run.py index 451da96..1c01b79 100644 --- a/devbot/run.py +++ b/devbot/run.py @@ -22,6 +22,14 @@ def run_sugar(): print "Cannot run two instances with the same profile." return + resolution = config.get_pref("RESOLUTION") + if resolution: + os.environ["SUGAR_RUNNER_RESOLUTION"] = resolution + + output = config.get_pref("OUTPUT") + if output: + os.environ["SUGAR_RUNNER_OUTPUT"] = output + run(["sugar-runner"]) def _get_random_id(): |