test: Make /var/lock readable in test teardown, so that it can be removed later

Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
Jacques de Laval
2021-02-25 11:14:49 +01:00
parent 691bc58f0e
commit 3c32cbfd9e
2 changed files with 4 additions and 3 deletions
+4
View File
@@ -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
}
-3
View File
@@ -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