about summary refs log tree commit diff
path: root/tests/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/init.sh')
-rw-r--r--tests/init.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/init.sh b/tests/init.sh
index c3a7aac29f16..316b2ec3d623 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -28,6 +28,8 @@ ln -s $TOP/scripts/readmanifest.pm $NIX_BIN_DIR/nix/
 mkdir -p "$NIX_STATE_DIR"/manifests
 mkdir -p "$NIX_STATE_DIR"/gcroots
 mkdir -p "$NIX_STATE_DIR"/temproots
+mkdir -p "$NIX_STATE_DIR"/profiles
+ln -s "$NIX_STATE_DIR"/profiles "$NIX_STATE_DIR"/gcroots/
 
 cat > "$NIX_CONF_DIR"/nix.conf <<EOF
 gc-keep-outputs = false