mirror of
https://github.com/rclone/rclone.git
synced 2026-11-29 19:35:13 -05:00
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:
1 parent
3fef8016b5
commit
caba22a585
1 file changed
+3
-3
+3
-3
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user