Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/run-tests
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-28 20:03:18 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-28 20:03:18 (GMT)
commitef443c2bd7e8e5581d6634a6a14b803b21e520ae (patch)
tree8ad01a7de2cc87826759875a4c1e196118b8e3b6 /commands/run-tests
parentc9476f1837246cfe59c7a8e262e404def7c6f533 (diff)
Move all checks into python code
So that they can be logged.
Diffstat (limited to 'commands/run-tests')
-rwxr-xr-xcommands/run-tests48
1 files changed, 0 insertions, 48 deletions
diff --git a/commands/run-tests b/commands/run-tests
deleted file mode 100755
index 1ac1ea4..0000000
--- a/commands/run-tests
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/python -u
-
-import argparse
-import os
-import shutil
-import sys
-
-import common
-
-from devbot import run
-from devbot import test
-
-
-def _get_profile():
- profile_path = os.path.expanduser("~/.sugar/uitests")
- shutil.rmtree(profile_path, ignore_errors=True)
- return profile_path
-
-
-def _get_test_path(name):
- return os.path.join(common.base_dir, "tests", "sugar", name)
-
-
-parser = argparse.ArgumentParser()
-parser.add_argument("module", nargs="?", help="name of the module to test")
-args = parser.parse_args()
-
-common.setup(log_name="test")
-
-os.environ["SUGAR_LOGGER_LEVEL"] = "debug"
-os.environ["SUGAR_PROFILE"] = "uitests"
-os.environ["GTK_MODULES"] = "gail:atk-bridge"
-
-if args.module:
- test.test_one(args.module)
-else:
- print "\n= Checking =\n"
-
- if not test.test():
- sys.exit(1)
-
- print "* Running UI test"
-
- profile_path = _get_profile()
- result = run.run_test("sugar-runner", _get_test_path("shell.py"))
- run.collect_logs(os.path.join(profile_path, "logs"))
- if not result:
- sys.exit(1)