mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 13:06: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
|
source common.sh
|
||||||
|
|
||||||
test -n "$TEST_ROOT"
|
test -n "$TEST_ROOT"
|
||||||
if test -d "$TEST_ROOT"; then
|
if test -d "$TEST_ROOT"; then
|
||||||
chmod -R u+w "$TEST_ROOT"
|
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"
|
rm -rf "$TEST_ROOT"
|
||||||
fi
|
fi
|
||||||
mkdir "$TEST_ROOT"
|
mkdir "$TEST_ROOT"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue