mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00:00
Integration tests should take .stfolder into account when comparing dirs
This commit is contained in:
parent
aaf625c624
commit
8a674c8bc3
@ -324,7 +324,7 @@ func startWalker(dir string, res chan<- fileInfo, abort <-chan struct{}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
rn, _ := filepath.Rel(dir, path)
|
rn, _ := filepath.Rel(dir, path)
|
||||||
if rn == "." {
|
if rn == "." || rn == ".stfolder" {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ testConvergence() {
|
|||||||
|
|
||||||
for i in 1 2 3 12-1 12-2 23-2 23-3; do
|
for i in 1 2 3 12-1 12-2 23-2 23-3; do
|
||||||
pushd "s$i" >/dev/null
|
pushd "s$i" >/dev/null
|
||||||
../md5r -l | sort | grep -v .stversions > ../md5-$i
|
../md5r -l | sort | grep -v .stversions | grep -v .stfolder > ../md5-$i
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ alterFiles() {
|
|||||||
chmod 500 ro-test
|
chmod 500 ro-test
|
||||||
touch "timechanged-$i"
|
touch "timechanged-$i"
|
||||||
|
|
||||||
../md5r -l | sort | grep -v .stversions > ../md5-$i
|
../md5r -l | sort | grep -v .stversions | grep -v .stfolder > ../md5-$i
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -43,9 +43,9 @@ stop() {
|
|||||||
|
|
||||||
clean() {
|
clean() {
|
||||||
if [[ $(uname -s) == "Linux" ]] ; then
|
if [[ $(uname -s) == "Linux" ]] ; then
|
||||||
grep -v .stversions | grep -v utf8-nfd
|
grep -v .stversions | grep -v .stfolder | grep -v utf8-nfd
|
||||||
else
|
else
|
||||||
grep -v .stversions
|
grep -v .stversions | grep -v .stfolder
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user