]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
sat test: remove the working directory at the end of the command
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Thu, 3 Nov 2016 09:29:36 +0000 (10:29 +0100)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Thu, 3 Nov 2016 09:29:36 +0000 (10:29 +0100)
commands/test.py

index 3bdcd8a6e55a3116006d74c6b30201bcb9c5f348..61e8207261cef0e534ab4a266fd10cd939310bb3 100644 (file)
@@ -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