Mercurial > hg
comparison tests/test-archive.t @ 12316:4134686b83e1
tests: add exit codes to unified tests
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 16 Sep 2010 17:51:32 -0500 |
parents | afe19a1bf9d3 |
children | 11db6fa2961e |
comparison
equal
deleted
inserted
replaced
12315:ca58f6475f1d | 12316:4134686b83e1 |
---|---|
162 $ python md5comp.py tip1.tar.gz tip2.tar.gz | 162 $ python md5comp.py tip1.tar.gz tip2.tar.gz |
163 True | 163 True |
164 | 164 |
165 $ hg archive -t zip -p /illegal test.zip | 165 $ hg archive -t zip -p /illegal test.zip |
166 abort: archive prefix contains illegal components | 166 abort: archive prefix contains illegal components |
167 [255] | |
167 $ hg archive -t zip -p very/../bad test.zip | 168 $ hg archive -t zip -p very/../bad test.zip |
168 | 169 |
169 $ hg archive --config ui.archivemeta=false -t zip -r 2 test.zip | 170 $ hg archive --config ui.archivemeta=false -t zip -r 2 test.zip |
170 $ unzip -t test.zip | 171 $ unzip -t test.zip |
171 Archive: test.zip | 172 Archive: test.zip |
203 tag: anothertag | 204 tag: anothertag |
204 tag: mytag | 205 tag: mytag |
205 | 206 |
206 $ hg archive -t bogus test.bogus | 207 $ hg archive -t bogus test.bogus |
207 abort: unknown archive type 'bogus' | 208 abort: unknown archive type 'bogus' |
209 [255] | |
208 | 210 |
209 server errors | 211 server errors |
210 | 212 |
211 $ cat errors.log | 213 $ cat errors.log |
212 | 214 |
214 | 216 |
215 $ hg init ../empty | 217 $ hg init ../empty |
216 $ cd ../empty | 218 $ cd ../empty |
217 $ hg archive ../test-empty | 219 $ hg archive ../test-empty |
218 abort: no working directory: please specify a revision | 220 abort: no working directory: please specify a revision |
221 [255] | |
219 | 222 |
220 $ exit 0 | 223 $ exit 0 |