Mercurial > hg
comparison tests/test-walk.t @ 22947:c63a09b6b337
tests: use $PYTHON instead of hardcoding python
This makes running the testsuite with pypy possible.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 15 Oct 2014 15:35:59 -0400 |
parents | a2f4ea82d6d3 |
children | 70e822796ac8 |
comparison
equal
deleted
inserted
replaced
22946:77c121da6143 | 22947:c63a09b6b337 |
---|---|
308 $ hg debugwalk ignored/file | 308 $ hg debugwalk ignored/file |
309 f ignored/file ignored/file exact | 309 f ignored/file ignored/file exact |
310 | 310 |
311 Test listfile and listfile0 | 311 Test listfile and listfile0 |
312 | 312 |
313 $ python -c "file('listfile0', 'wb').write('fenugreek\0new\0')" | 313 $ $PYTHON -c "file('listfile0', 'wb').write('fenugreek\0new\0')" |
314 $ hg debugwalk -I 'listfile0:listfile0' | 314 $ hg debugwalk -I 'listfile0:listfile0' |
315 f fenugreek fenugreek | 315 f fenugreek fenugreek |
316 f new new | 316 f new new |
317 $ python -c "file('listfile', 'wb').write('fenugreek\nnew\r\nmammals/skunk\n')" | 317 $ $PYTHON -c "file('listfile', 'wb').write('fenugreek\nnew\r\nmammals/skunk\n')" |
318 $ hg debugwalk -I 'listfile:listfile' | 318 $ hg debugwalk -I 'listfile:listfile' |
319 f fenugreek fenugreek | 319 f fenugreek fenugreek |
320 f mammals/skunk mammals/skunk | 320 f mammals/skunk mammals/skunk |
321 f new new | 321 f new new |
322 | 322 |
334 | 334 |
335 Test split patterns on overflow | 335 Test split patterns on overflow |
336 | 336 |
337 $ cd t | 337 $ cd t |
338 $ echo fennel > overflow.list | 338 $ echo fennel > overflow.list |
339 $ python -c "for i in xrange(20000 / 100): print 'x' * 100" >> overflow.list | 339 $ $PYTHON -c "for i in xrange(20000 / 100): print 'x' * 100" >> overflow.list |
340 $ echo fenugreek >> overflow.list | 340 $ echo fenugreek >> overflow.list |
341 $ hg debugwalk 'listfile:overflow.list' 2>&1 | grep -v '^xxx' | 341 $ hg debugwalk 'listfile:overflow.list' 2>&1 | grep -v '^xxx' |
342 f fennel fennel exact | 342 f fennel fennel exact |
343 f fenugreek fenugreek exact | 343 f fenugreek fenugreek exact |
344 $ cd .. | 344 $ cd .. |