diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-10-08 16:57:25 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-10-13 12:12:44 +0200 |
commit | e31a48366f19d5fa452df6273e817a4ea5516e50 (patch) | |
tree | fae8f399ba8764a0fc7ff1812b8e68bcee6a8847 /tests | |
parent | 1785ba2980c9dd8274dd4bec5c0e46be02544b7e (diff) |
Fix referrers test
This test broke the assumption that the hash parts of store paths are
unique.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/referrers.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/referrers.sh b/tests/referrers.sh index 81323c280..7ede707b8 100644 --- a/tests/referrers.sh +++ b/tests/referrers.sh @@ -14,9 +14,9 @@ echo "making registration..." set +x 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 - 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 ref2=$reference fi |