[PATCH 2 of 2 pypy-support] tests: use $PYTHON instead of hardcoding python

Matt Mackall mpm at selenic.com
Thu Oct 16 14:37:03 CDT 2014


On Wed, 2014-10-15 at 16:07 -0400, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <raf at durin42.com>
> # Date 1413401759 14400
> #      Wed Oct 15 15:35:59 2014 -0400
> # Node ID 1eba40108f3f7e0c4c8511cf7a18cc0df8de61b9
> # Parent  b2d09c0ac9f97e5ce4aafb9702eb1158387a8045
> tests: use $PYTHON instead of hardcoding python
> 
> This makes running the testsuite with pypy possible.
> 
> diff --git a/tests/test-addremove-similar.t b/tests/test-addremove-similar.t
> --- a/tests/test-addremove-similar.t
> +++ b/tests/test-addremove-similar.t
> @@ -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

Two problems here:

- no check-code rule to prevent back-creep
- almost all of this should be switched to ">>>" anyway

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list