Mercurial > public > mercurial-scm > hg
diff tests/test-addremove-similar.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 | f2719b387380 |
children | 7e6d73f65e7b |
line wrap: on
line diff
--- a/tests/test-addremove-similar.t Wed Oct 15 15:13:43 2014 -0400 +++ b/tests/test-addremove-similar.t Wed Oct 15 15:35:59 2014 -0400 @@ -1,7 +1,7 @@ $ hg init rep; cd rep $ touch empty-file - $ python -c 'for x in range(10000): print x' > large-file + $ $PYTHON -c 'for x in range(10000): print x' > large-file $ hg addremove adding empty-file @@ -10,7 +10,7 @@ $ hg commit -m A $ rm large-file empty-file - $ python -c 'for x in range(10,10000): print x' > another-file + $ $PYTHON -c 'for x in range(10,10000): print x' > another-file $ hg addremove -s50 adding another-file @@ -34,8 +34,8 @@ $ hg init rep2; cd rep2 - $ python -c 'for x in range(10000): print x' > large-file - $ python -c 'for x in range(50): print x' > tiny-file + $ $PYTHON -c 'for x in range(10000): print x' > large-file + $ $PYTHON -c 'for x in range(50): print x' > tiny-file $ hg addremove adding large-file @@ -43,7 +43,7 @@ $ hg commit -m A - $ python -c 'for x in range(70): print x' > small-file + $ $PYTHON -c 'for x in range(70): print x' > small-file $ rm tiny-file $ rm large-file