From 4b66be2ad85e5fdda7dfc76d0bba97f373245bbb Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Thu, 3 Nov 2016 10:29:36 +0100 Subject: [PATCH] sat test: remove the working directory at the end of the command --- commands/test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/test.py b/commands/test.py index 3bdcd8a..61e8207 100644 --- a/commands/test.py +++ b/commands/test.py @@ -541,5 +541,9 @@ def run(args, runner, logger): retcode, "Click on the link to get the detailed test results") + logger.write(_("Removing the temporary directory: rm -rf %s\n" % test_runner.tmp_working_dir), 5) + if os.path.exists(test_runner.tmp_working_dir): + shutil.rmtree(test_runner.tmp_working_dir) + return retcode -- 2.39.2