aboutsummaryrefslogtreecommitdiff
path: root/tests/hash.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hash.sh')
-rw-r--r--tests/hash.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hash.sh b/tests/hash.sh
index e5f75e2cf..7a99aec9b 100644
--- a/tests/hash.sh
+++ b/tests/hash.sh
@@ -2,7 +2,7 @@ source common.sh
try () {
printf "%s" "$2" > $TEST_ROOT/vector
- hash=$(nix hash file --base16 $EXTRA --type "$1" $TEST_ROOT/vector)
+ hash=$(nix hash file --base16 ${EXTRA-} --type "$1" $TEST_ROOT/vector)
if test "$hash" != "$3"; then
echo "hash $1, expected $3, got $hash"
exit 1