mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 08:12:29 +00:00
flakes: test to ensure we get an error if --file isn't used
This commit is contained in:
parent
c625b45357
commit
b11dd58fe4
@ -47,6 +47,9 @@ testRepl () {
|
||||
| grep "attribute 'currentSystem' missing"
|
||||
nix repl "${nixArgs[@]}" 2>&1 <<< "builtins.currentSystem" \
|
||||
| grep "$(nix-instantiate --eval -E 'builtins.currentSystem')"
|
||||
|
||||
expectStderr 1 nix repl ${testDir}/simple.nix \
|
||||
| grepQuiet -s "error: path '$testDir/simple.nix' is not a flake"
|
||||
}
|
||||
|
||||
# Simple test, try building a drv
|
||||
|
Loading…
Reference in New Issue
Block a user