57 dav_sync_push() |
57 dav_sync_push() |
58 { |
58 { |
59 $DAV_SYNC_BIN push $1 > tmp-sync/out.txt |
59 $DAV_SYNC_BIN push $1 > tmp-sync/out.txt |
60 if [ $? -ne 0 ]; |
60 if [ $? -ne 0 ]; |
61 then |
61 then |
62 echo "$errormsg" |
62 echo "$2" |
63 exit 2 |
63 exit 2 |
64 fi |
64 fi |
65 } |
65 } |
66 |
66 |
67 $DAV_BIN mkcol dav-test-repo/sync/test1 |
67 $DAV_BIN mkcol dav-test-repo/sync/test1 2> /dev/null |
68 |
68 |
69 # 1. test |
69 # 1. test |
70 # copy files to the test1a dir and run push |
70 # copy files to the test1a dir and run push |
71 # expected result: 2 uploads, no errors or conflicts |
71 # expected result: 2 uploads, no errors or conflicts |
72 |
72 |