diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-03 14:01:09 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-03 14:01:09 (GMT) |
commit | b61ccac7a65e807e89257ca3274e97a23030657c (patch) | |
tree | cac6de54198c16c50f9ccf4782d5348744441db9 /commands | |
parent | 862a50854740ae40365602f9718eb26bcf16c194 (diff) |
Use sugar-runner for ui tests
Diffstat (limited to 'commands')
-rwxr-xr-x | commands/test-ui | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/commands/test-ui b/commands/test-ui index fb1233e..57a4d35 100755 --- a/commands/test-ui +++ b/commands/test-ui @@ -1,13 +1,15 @@ #!/usr/bin/python import os +import sys import common from devbot import run -from devbot import config common.setup() -test = os.path.join(common.tests_dir, "sugar", "shell.py") -run.run(["sr-run-test", test, config.logs_dir]) +virtual = "SUGAR_BUILDBOT" in os.environ +test_path = os.path.join(common.tests_dir, "sugar", "shell.py") +if not run.run_test(test_path, virtual): + sys.exit(1) |