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-28 17:31:00 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-28 17:31:00 (GMT)
commitce40e73ae0ce6593d2871c8a42d37a2be679454f (patch)
treeb40487b2fd0892f940c6105cfde8d8d461442c22 /commands
parent2c8450b851c9595669012479b62372ba24976599 (diff)
Actually clear the profile
Diffstat (limited to 'commands')
-rwxr-xr-xcommands/run-tests3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/run-tests b/commands/run-tests
index 33de39e..63497be 100755
--- a/commands/run-tests
+++ b/commands/run-tests
@@ -17,9 +17,11 @@ def _clear_profile():
profile_path = os.path.expanduser("~/.sugar/uitests")
shutil.rmtree(profile_path, ignore_errors=True)
+
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()
@@ -34,6 +36,7 @@ else:
if not test.test():
sys.exit(1)
+ _clear_profile()
if run.run_test("sugar-runner", _get_test_path("shell.py")):
sys.exit(1)