From: Serge Rehbinder Date: Thu, 3 Nov 2016 09:29:36 +0000 (+0100) Subject: sat test: remove the working directory at the end of the command X-Git-Tag: 5.0.0a1~59 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4b66be2ad85e5fdda7dfc76d0bba97f373245bbb;p=tools%2Fsat.git sat test: remove the working directory at the end of the command --- 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