diff options
author | hongbo tian <hongbo.tianhongbo@huawei.com> | 2016-11-16 08:00:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-11-16 08:00:31 +0000 |
commit | 318adb088c45d2aa086184cca6a3f5425c4a8d60 (patch) | |
tree | 8bd014858517fa83f60e3e35fd045a7d69b83bfc | |
parent | b90fc8907f0c4ba716d6332159f881f880965277 (diff) | |
parent | 2f059c25737d005e584505d014ecb47402fcf977 (diff) |
Merge "dovetail tool: cleanup the result directory before running"
-rw-r--r-- | dovetail/utils/dovetail_logger.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dovetail/utils/dovetail_logger.py b/dovetail/utils/dovetail_logger.py index 9cd8719b..8be9c93f 100644 --- a/dovetail/utils/dovetail_logger.py +++ b/dovetail/utils/dovetail_logger.py @@ -31,8 +31,8 @@ import dovetail_utils as dt_utils def clean_results_dir(): result_path = dovetail_config['result_dir'] if os.path.exists(result_path): - cmd = 'sudo rm -rf %s' % (result_path) - dt_utils.exec_cmd(cmd) + cmd = 'sudo rm -rf %s/*' % (result_path) + dt_utils.exec_cmd(cmd, exit_on_error=False) clean_results_dir() |