mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
flakes: test to ensure we get an error if --file isn't used
This commit is contained in:
parent
c625b45357
commit
b11dd58fe4
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue