From ce40e73ae0ce6593d2871c8a42d37a2be679454f Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 28 Dec 2012 17:31:00 +0000 Subject: Actually clear the profile --- (limited to 'commands') 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) -- cgit v0.9.1