Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-03 14:01:09 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-03 14:01:09 (GMT)
commitb61ccac7a65e807e89257ca3274e97a23030657c (patch)
treecac6de54198c16c50f9ccf4782d5348744441db9 /commands
parent862a50854740ae40365602f9718eb26bcf16c194 (diff)
Use sugar-runner for ui tests
Diffstat (limited to 'commands')
-rwxr-xr-xcommands/test-ui8
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)