Skip to content

Commit

Permalink
Better test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Feb 2, 2024
1 parent 05535be commit e67458e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/functional/fetchurl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ test -x $outPath/fetchurl.sh
test -L $outPath/symlink

# Make sure that *not* passing a outputHash fails.
requireDaemonNewerThan "2.20"
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'

0 comments on commit e67458e

Please sign in to comment.