fs/logger: make the tests deterministic

Previously this used `rclone test makefiles --seed 0` which sets a
random seed and every now and again we get this error

    Failed to open file "$WORK\\src\\moru": open $WORK\src\moru: is a directory

Because a file with the same name was created as a file in the src and
a dir in the dst.

This fixes it by using determinstic seeds each time.
This commit is contained in:
Nick Craig-Wood 2024-06-12 16:39:30 +01:00
parent 3fef8016b5
commit caba22a585

View File

@ -1,10 +1,10 @@
# tests whether rclone check and rclone sync output exactly the same file lists.
# Filling src and dst with makefiles:
exec rclone test makefiles $SRC --seed 0
exec rclone test makefiles $DST --seed 1
exec rclone test makefiles $SRC --seed 2
exec rclone test makefiles $SRC --seed 1
exec rclone test makefiles $DST --seed 2
exec rclone test makefiles $SRC --seed 3
exec rclone test makefiles $DST --seed 3
# running rclone check for baseline test:
# error is expected here: