diff --git a/tests/integration/list.bats b/tests/integration/list.bats index 9d25dfd36..a22dd19a4 100644 --- a/tests/integration/list.bats +++ b/tests/integration/list.bats @@ -9,9 +9,8 @@ function setup() { } function teardown() { - if [ -n "$ALT_ROOT" ]; then - ROOT="$ALT_ROOT" teardown_bundle - fi + ROOT="$ALT_ROOT" teardown_bundle + unset ALT_ROOT teardown_bundle } diff --git a/tests/integration/root.bats b/tests/integration/root.bats index 53bd1ce56..68bdf5e76 100644 --- a/tests/integration/root.bats +++ b/tests/integration/root.bats @@ -9,10 +9,8 @@ function setup() { } function teardown() { - if [ -n "$ALT_ROOT" ]; then - ROOT=$ALT_ROOT __runc delete -f test_dotbox - rm -rf "$ALT_ROOT" - fi + ROOT=$ALT_ROOT __runc delete -f test_dotbox + unset ALT_ROOT teardown_bundle }