changeset 5612:6576f6bb644b

tests: use appropriate Python (2 or 3) for random-revs.py
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 24 Oct 2020 23:55:15 +0800
parents 11b8f7003713
children 87966baf6ea9
files tests/test-stablesort-branchpoint-criss-cross.t tests/test-stablesort-branchpoint.t tests/test-stablesort-criss-cross.t tests/test-stablesort.t
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-stablesort-branchpoint-criss-cross.t	Sat Oct 24 23:47:01 2020 +0800
+++ b/tests/test-stablesort-branchpoint-criss-cross.t	Sat Oct 24 23:55:15 2020 +0800
@@ -698,7 +698,7 @@
   updating to branch default
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd crisscross_random
-  $ for x in `python "$TESTDIR/testlib/random-revs.py" 50 44`; do
+  $ for x in `"$PYTHON" "$TESTDIR/testlib/random-revs.py" 50 44`; do
   >   # using python to benefit from the random seed
   >   hg pull -r $x --quiet
   > done;
--- a/tests/test-stablesort-branchpoint.t	Sat Oct 24 23:47:01 2020 +0800
+++ b/tests/test-stablesort-branchpoint.t	Sat Oct 24 23:55:15 2020 +0800
@@ -657,7 +657,7 @@
   updating to branch default
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd recursion_random
-  $ for x in `python "$TESTDIR/testlib/random-revs.py" 15 5`; do
+  $ for x in `"$PYTHON" "$TESTDIR/testlib/random-revs.py" 15 5`; do
   >   # using python to benefit from the random seed
   >   hg pull -r $x --quiet
   > done;
--- a/tests/test-stablesort-criss-cross.t	Sat Oct 24 23:47:01 2020 +0800
+++ b/tests/test-stablesort-criss-cross.t	Sat Oct 24 23:55:15 2020 +0800
@@ -810,7 +810,7 @@
   updating to branch default
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd crisscross_random
-  $ for x in `python "$TESTDIR/testlib/random-revs.py" 50 44`; do
+  $ for x in `"$PYTHON" "$TESTDIR/testlib/random-revs.py" 50 44`; do
   >   # using python to benefit from the random seed
   >   hg pull -r $x --quiet
   > done;
--- a/tests/test-stablesort.t	Sat Oct 24 23:47:01 2020 +0800
+++ b/tests/test-stablesort.t	Sat Oct 24 23:55:15 2020 +0800
@@ -812,7 +812,7 @@
   updating to branch default
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd recursion_random
-  $ for x in `python "$TESTDIR/testlib/random-revs.py" 15 5`; do
+  $ for x in `"$PYTHON" "$TESTDIR/testlib/random-revs.py" 15 5`; do
   >   # using python to benefit from the random seed
   >   hg pull -r $x --quiet
   > done;