mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-16 23:27:17 +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"
|
| grep "attribute 'currentSystem' missing"
|
||||||
nix repl "${nixArgs[@]}" 2>&1 <<< "builtins.currentSystem" \
|
nix repl "${nixArgs[@]}" 2>&1 <<< "builtins.currentSystem" \
|
||||||
| grep "$(nix-instantiate --eval -E '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
|
# Simple test, try building a drv
|
||||||
|
|
Loading…
Add table
Reference in a new issue