Mercurial > evolve
diff tests/test-stablesort-criss-cross.t @ 5611:11b8f7003713
tests: move ad-hoc random_rev.py to testlib/random-revs.py
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 24 Oct 2020 23:47:01 +0800 |
parents | 57030b9d71c3 |
children | 6576f6bb644b |
line wrap: on
line diff
--- a/tests/test-stablesort-criss-cross.t Sat Oct 24 23:26:41 2020 +0800 +++ b/tests/test-stablesort-criss-cross.t Sat Oct 24 23:47:01 2020 +0800 @@ -21,16 +21,6 @@ > done; > } - $ cat << EOF >> random_rev.py - > import random - > import sys - > - > loop = int(sys.argv[1]) - > var = int(sys.argv[2]) - > for x in range(loop): - > print(x + random.randint(0, var)) - > EOF - Check criss cross merge ======================= @@ -820,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 ../random_rev.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;