mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 04:56:01 +01:00
parent
51b03401fb
commit
5e13c907b4
1 changed files with 6 additions and 0 deletions
6
tests/init.sh
Normal file → Executable file
6
tests/init.sh
Normal file → Executable file
|
|
@ -1,8 +1,14 @@
|
|||
set -eu -o pipefail
|
||||
|
||||
source common.sh
|
||||
|
||||
test -n "$TEST_ROOT"
|
||||
if test -d "$TEST_ROOT"; then
|
||||
chmod -R u+w "$TEST_ROOT"
|
||||
# We would delete any daemon socket, so let's stop the daemon first.
|
||||
if [[ -n "${NIX_DAEMON_PACKAGE:-}" ]]; then
|
||||
killDaemon
|
||||
fi
|
||||
rm -rf "$TEST_ROOT"
|
||||
fi
|
||||
mkdir "$TEST_ROOT"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue