Integration tests should take .stfolder into account when comparing dirs

This commit is contained in:
Jakob Borg 2014-10-15 09:53:49 +02:00
parent aaf625c624
commit 8a674c8bc3
3 changed files with 5 additions and 5 deletions

View File

@ -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
} }

View File

@ -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

View File

@ -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
} }