diff --git a/tests/functional/flakes/symlink-paths.sh b/tests/functional/flakes/symlink-paths.sh index 2559e81073a..d93accc5405 100644 --- a/tests/functional/flakes/symlink-paths.sh +++ b/tests/functional/flakes/symlink-paths.sh @@ -6,14 +6,14 @@ requireGit create_flake() { local flakeDir="$1" - createGitRepo $flakeDir - cat > $flakeDir/flake.nix < "$flakeDir/flake.nix" < $repoDir/subdir/flake.nix < "$repoDir/subdir/flake.nix" < $repoDir/file - mkdir $repoDir/subdir - cat > $repoDir/subdir/flake.nix < "$repoDir/file" + mkdir "$repoDir/subdir" + cat > "$repoDir/subdir/flake.nix" < $repo2Dir/file + echo "World" > "$repo2Dir/file" git -C "$repo2Dir" add flake1_sym file git -C "$repo2Dir" commit -m Initial [[ $(nix eval "$repo2Dir/flake1_sym#x") == \"Hello\\n\" ]]