From ed7c89790e10445dc60736235484016decc03b22 Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Tue, 18 Mar 2025 12:40:10 -0700 Subject: [PATCH] fix: do not test non-presence of flakes from a subdirectory of lix src Yeah, we could have seen that one coming, it's kind of on the nose, really. Fixes: https://git.lix.systems/lix-project/lix/issues/748 Change-Id: I9e89f73ed89105338343fdecd615e398fc758e89 --- tests/functional/repl.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/functional/repl.sh b/tests/functional/repl.sh index 5868f7931..e205fc812 100644 --- a/tests/functional/repl.sh +++ b/tests/functional/repl.sh @@ -48,7 +48,9 @@ testRepl () { nix repl "${nixArgs[@]}" 2>&1 <<< "builtins.currentSystem" \ | grep "$(nix-instantiate --eval -E 'builtins.currentSystem')" - local replOutput="$(nix repl "${nixArgs[@]}" ${testDir}/simple.nix 2>&1)" + # . is TEST_ROOT + cp "$testDir/simple.nix" . + local replOutput="$(nix repl "${nixArgs[@]}" ./simple.nix 2>&1)" echo "$replOutput" echo "$replOutput" \ | grepQuiet "error: could not find a flake.nix file" \