Mercurial > public > mercurial-scm > hg-stable
diff tests/test-convert-git.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 | 064a912ebfc2 |
children | f7c0556d22d7 |
line wrap: on
line diff
--- a/tests/test-convert-git.t Wed Oct 15 15:13:43 2014 -0400 +++ b/tests/test-convert-git.t Wed Oct 15 15:35:59 2014 -0400 @@ -297,7 +297,7 @@ $ mkdir git-repo3 $ cd git-repo3 $ git init-db >/dev/null 2>/dev/null - $ python -c 'file("b", "wb").write("".join([chr(i) for i in range(256)])*16)' + $ $PYTHON -c 'file("b", "wb").write("".join([chr(i) for i in range(256)])*16)' $ git add b $ commit -a -m addbinary $ cd .. @@ -314,7 +314,7 @@ $ cd git-repo3-hg $ hg up -C 1 files updated, 0 files merged, 0 files removed, 0 files unresolved - $ python -c 'print len(file("b", "rb").read())' + $ $PYTHON -c 'print len(file("b", "rb").read())' 4096 $ cd ..