diff --git a/test b/test index 246284a05..db36e55c5 100755 --- a/test +++ b/test @@ -255,8 +255,10 @@ function teardown() function clean() { - if [ -d "$path_test" ]; then - (cd "$path_test" && ws destroy) || (docker ps -a && return 1) + if [ -d "$path_test" ]; then + if [ -d "${path_test}/.my127ws" ]; then + (cd "$path_test" && ws destroy) || (docker ps -a && return 1) + fi rm -rf "$path_test" fi }