diff --git a/test/lib.sh b/test/lib.sh index f6db9dfd..ff021e12 100755 --- a/test/lib.sh +++ b/test/lib.sh @@ -89,6 +89,10 @@ teardown() { fi wait + + if [ -d "$TESTS_ROOT/var/lock" ]; then + chmod +r test-root/var/lock + fi rm -f "$TESTS_ROOT"/running_test.pid } diff --git a/test/teardown-root.sh b/test/teardown-root.sh index 88609938..664c481c 100755 --- a/test/teardown-root.sh +++ b/test/teardown-root.sh @@ -2,8 +2,5 @@ set -eu -if [ -d test-root/var/lock ]; then - chmod +r test-root/var/lock -fi make -C test-root/ clean rm -f test.env