mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 13:26:11 +08:00
94a0991584
Before this change we set the modtime of the cache file when all writers had finished. This has the unfortunate effect that the file is uploaded with the wrong modtime which means on backends which can't set modtimes except when uploading files it is wrong. This change sets the modtime of the cache file immediately in the cache and in turn sets the modtime in the file info.
27 lines
483 B
Bash
Executable File
27 lines
483 B
Bash
Executable File
#!/bin/bash
|
|
# Thrash the VFS tests
|
|
|
|
set -e
|
|
|
|
# Optionally set the iterations with the first parameter
|
|
iterations=${1:-100}
|
|
|
|
base=$(dirname $(dirname $(realpath "$0")))
|
|
echo ${base}
|
|
run=${base}/bin/test-repeat.sh
|
|
echo ${run}
|
|
|
|
testdirs="
|
|
vfs
|
|
vfs/vfscache
|
|
vfs/vfscache/writeback
|
|
vfs/vfscache/downloaders
|
|
cmd/cmount
|
|
"
|
|
|
|
for testdir in ${testdirs}; do
|
|
echo "Testing ${testdir} with ${iterations} iterations"
|
|
cd ${base}/${testdir}
|
|
${run} -i=${iterations} -race -tags=cmount
|
|
done
|