test/bin-test/test-dav-sync-versioning1.sh

changeset 773
78e501f6370d
parent 679
0d352b79363a
equal deleted inserted replaced
772:ab26daccfb8d 773:78e501f6370d
222 if [ $? -ne 0 ]; then 222 if [ $? -ne 0 ]; then
223 echo "test 5: list-versions failed" 223 echo "test 5: list-versions failed"
224 exit 2 224 exit 2
225 fi 225 fi
226 226
227
227 # extract version name 228 # extract version name
228 VERSION=${VERSION:5} 229 VERSION=${VERSION##name: }
229 230
230 $DAV_SYNC_BIN restore -V $VERSION tmp-sync/test5a/dir1/file2 > tmp-sync/out.txt 2> /dev/null 231 $DAV_SYNC_BIN restore -V $VERSION tmp-sync/test5a/dir1/file2 > tmp-sync/out.txt 2> /dev/null
231 if [ $? -ne 0 ]; then 232 if [ $? -ne 0 ]; then
232 echo "test 5: restore failed" 233 echo "test 5: restore failed"
233 exit 2 234 exit 2

mercurial