mirror of
https://github.com/NixOS/nix
synced 2025-07-07 18:31:49 +02:00
Merge pull request #12829 from NixOS/mergify/bp/2.28-maintenance/pr-12730
libcmd/repl: Fix missing runNix in repl (backport #12730)
This commit is contained in:
commit
f7ebe64b47
2 changed files with 10 additions and 4 deletions
|
@ -56,6 +56,10 @@ testRepl () {
|
|||
nix repl "${nixArgs[@]}" 2>&1 <<< "builtins.currentSystem" \
|
||||
| grep "$(nix-instantiate --eval -E 'builtins.currentSystem')"
|
||||
|
||||
# regression test for #12163
|
||||
replOutput=$(nix repl "${nixArgs[@]}" 2>&1 <<< ":sh import $testDir/simple.nix")
|
||||
echo "$replOutput" | grepInverse "error: Cannot run 'nix-shell'"
|
||||
|
||||
expectStderr 1 nix repl "${testDir}/simple.nix" \
|
||||
| grepQuiet -s "error: path '$testDir/simple.nix' is not a flake"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue