mirror of
https://github.com/NixOS/nix.git
synced 2025-02-16 08:53:14 +00:00
Merge pull request #10697 from edolstra/fix-test-root-removal
tests/functional/common/init.sh: Make $TEST_ROOT writable before removing it
This commit is contained in:
commit
52200474e1
@ -2,7 +2,10 @@ test -n "$TEST_ROOT"
|
||||
# We would delete any daemon socket, so let's stop the daemon first.
|
||||
killDaemon
|
||||
# Destroy the test directory that may have persisted from previous runs
|
||||
rm -rf "$TEST_ROOT"
|
||||
if [[ -e "$TEST_ROOT" ]]; then
|
||||
chmod -R u+w "$TEST_ROOT"
|
||||
rm -rf "$TEST_ROOT"
|
||||
fi
|
||||
mkdir -p "$TEST_ROOT"
|
||||
mkdir "$TEST_HOME"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user