Fix referrers test

This test broke the assumption that the hash parts of store paths are
unique.
This commit is contained in:
Eelco Dolstra 2021-10-08 16:57:25 +02:00
parent 1785ba2980
commit e31a48366f

View file

@ -14,9 +14,9 @@ echo "making registration..."
set +x set +x
for ((n = 0; n < $max; n++)); do for ((n = 0; n < $max; n++)); do
storePath=$NIX_STORE_DIR/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-$n storePath=$NIX_STORE_DIR/$(printf "%05d\n" $n)aaaaaaaaaaaaaaaaaaaaaaaaaaa-$n
echo -n > $storePath echo -n > $storePath
ref2=$NIX_STORE_DIR/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-$((n+1)) ref2=$NIX_STORE_DIR/$(printf "%05d\n" $((n+1)))aaaaaaaaaaaaaaaaaaaaaaaaaaa-$((n+1))
if test $((n+1)) = $max; then if test $((n+1)) = $max; then
ref2=$reference ref2=$reference
fi fi