aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/referrers.sh4
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