dovetail tool: cleanup the result directory before running 75/24375/1
authorxudan <xudan16@huawei.com>
Wed, 16 Nov 2016 02:33:49 +0000 (02:33 +0000)
committerxudan <xudan16@huawei.com>
Wed, 16 Nov 2016 02:33:49 +0000 (02:33 +0000)
commit2f059c25737d005e584505d014ecb47402fcf977
tree33dd7f55bd3344cb78c5e9eb06fd1a48c5fc6fc2
parent64b221bee631cf52bf6a1109c16f9544eff58f80
dovetail tool: cleanup the result directory before running

1. Jenkins will fail with error
   rm: cannot remove '/home/opnfv/dovetail/results': Device or resource busy
2. The reason is that Jenkins will mount this directory before running
3. The effective solution is removing all contents in this directory rather
   than removing this mounted directory

JIRA: DOVETAIL-38

Change-Id: Ic32ea19341ad2048322ec11a4abc48e13019a7bb
Signed-off-by: xudan <xudan16@huawei.com>
dovetail/utils/dovetail_logger.py