From f2fe5532801482858415641c1f45ee505db5f71f Mon Sep 17 00:00:00 2001 From: Jean-Laurent de Morlhon Date: Wed, 18 Nov 2015 11:48:27 +0100 Subject: [PATCH] IT: cleanup properly before starting Signed-off-by: Jean-Laurent de Morlhon --- test/integration/run-bats.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/integration/run-bats.sh b/test/integration/run-bats.sh index 5c569e45ca..96072e0f22 100755 --- a/test/integration/run-bats.sh +++ b/test/integration/run-bats.sh @@ -73,6 +73,11 @@ export -f machine touch "$BATS_LOG" rm "$BATS_LOG" +cleanup_machines +if [[ -d "$MACHINE_STORAGE_PATH" ]]; then + rm -r "$MACHINE_STORAGE_PATH" +fi + run_bats "$BATS_FILE" if [[ -d "$MACHINE_STORAGE_PATH" ]]; then