mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 07:16:17 +02:00
Fix test
This commit is contained in:
parent
b8b739e484
commit
05535be03a
1 changed files with 3 additions and 1 deletions
|
@ -80,4 +80,6 @@ test -x $outPath/fetchurl.sh
|
||||||
test -L $outPath/symlink
|
test -L $outPath/symlink
|
||||||
|
|
||||||
# Make sure that *not* passing a outputHash fails.
|
# Make sure that *not* passing a outputHash fails.
|
||||||
expectStderr 100 nix-build --expr '{ url }: builtins.derivation { name = "nix-cache-info"; system = "x86_64-linux"; builder = "builtin:fetchurl"; inherit url; outputHashMode = "flat"; }' --argstr url file://$narxz 2>&1 | grep 'must be a fixed-output derivation'
|
expected=100
|
||||||
|
if [[ -v NIX_DAEMON_PACKAGE ]]; then expected=1; fi # work around the daemon not returning a 100 status correctly
|
||||||
|
expectStderr $expected nix-build --expr '{ url }: builtins.derivation { name = "nix-cache-info"; system = "x86_64-linux"; builder = "builtin:fetchurl"; inherit url; outputHashMode = "flat"; }' --argstr url file://$narxz 2>&1 | grep 'must be a fixed-output derivation'
|
||||||
|
|
Loading…
Reference in a new issue