Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/tests/test-walk.t Wed Oct 15 15:13:43 2014 -0400 +++ b/tests/test-walk.t Wed Oct 15 15:35:59 2014 -0400 @@ -310,11 +310,11 @@ Test listfile and listfile0 - $ python -c "file('listfile0', 'wb').write('fenugreek\0new\0')" + $ $PYTHON -c "file('listfile0', 'wb').write('fenugreek\0new\0')" $ hg debugwalk -I 'listfile0:listfile0' f fenugreek fenugreek f new new - $ python -c "file('listfile', 'wb').write('fenugreek\nnew\r\nmammals/skunk\n')" + $ $PYTHON -c "file('listfile', 'wb').write('fenugreek\nnew\r\nmammals/skunk\n')" $ hg debugwalk -I 'listfile:listfile' f fenugreek fenugreek f mammals/skunk mammals/skunk @@ -336,7 +336,7 @@ $ cd t $ echo fennel > overflow.list - $ python -c "for i in xrange(20000 / 100): print 'x' * 100" >> overflow.list + $ $PYTHON -c "for i in xrange(20000 / 100): print 'x' * 100" >> overflow.list $ echo fenugreek >> overflow.list $ hg debugwalk 'listfile:overflow.list' 2>&1 | grep -v '^xxx' f fennel fennel exact