##// END OF EJS Templates
largefiles: test coverage of error handling from putlfile...
Mads Kiilerich -
r26824:30db531e stable
parent child Browse files
Show More
@@ -200,3 +200,34 b' Inject corruption into the largefiles st'
200 200 ! large
201 201 ? z
202 202 $ rm .hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020
203
204 #if serve
205
206 Test coverage of error handling from putlfile:
207
208 $ mkdir $TESTTMP/mirrorcache
209 $ hg serve -R ../mirror -d -p $HGPORT1 --pid-file hg.pid --config largefiles.usercache=$TESTTMP/mirrorcache
210 $ cat hg.pid >> $DAEMON_PIDS
211
212 (the following push fails but doesn't show why)
213 $ hg push http://localhost:$HGPORT1 -f --config files.usercache=nocache
214 pushing to http://localhost:$HGPORT1/
215 searching for changes
216 unexpected putlfile response: None
217 abort: remotestore: could not put $TESTTMP/src/.hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020 to remote store http://localhost:$HGPORT1/
218 [255]
219
220 $ rm .hg/largefiles/e2fb5f2139d086ded2cb600d5a91a196e76bf020
221
222 Test coverage of 'missing from store':
223
224 $ hg serve -R ../mirror -d -p $HGPORT2 --pid-file hg.pid --config largefiles.usercache=$TESTTMP/mirrorcache --config "web.allow_push=*" --config web.push_ssl=no
225 $ cat hg.pid >> $DAEMON_PIDS
226
227 $ hg push http://localhost:$HGPORT2 -f --config largefiles.usercache=nocache
228 pushing to http://localhost:$HGPORT2/
229 searching for changes
230 abort: largefile e2fb5f2139d086ded2cb600d5a91a196e76bf020 missing from store (needs to be uploaded)
231 [255]
232
233 #endif
General Comments 0
You need to be logged in to leave comments. Login now