diff tests/test-bookmarks-pushpull.t @ 24361:8de8cd34f2e3

tests: replace uses of 'seq' with portable 'seq.py'
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 17 Mar 2015 21:47:47 -0400
parents ca4b89683078
children 03c84c966ef5
line wrap: on
line diff
--- a/tests/test-bookmarks-pushpull.t	Tue Mar 17 20:59:23 2015 -0400
+++ b/tests/test-bookmarks-pushpull.t	Tue Mar 17 21:47:47 2015 -0400
@@ -167,12 +167,7 @@
 
 (test that too many divergence of bookmark)
 
-  $ cat > $TESTTMP/seq.py <<EOF
-  > import sys
-  > for i in xrange(*[int(a) for a in sys.argv[1:]]):
-  >     print i
-  > EOF
-  $ python $TESTTMP/seq.py 1 100 | while read i; do hg bookmarks -r 000000000000 "X@${i}"; done
+  $ python $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -r 000000000000 "X@${i}"; done
   $ hg pull ../a
   pulling from ../a
   searching for changes
@@ -200,7 +195,7 @@
      @1                        2:0d2164f0ce0d
      @foo                      2:0d2164f0ce0d
 
-  $ python $TESTTMP/seq.py 1 100 | while read i; do hg bookmarks -d "X@${i}"; done
+  $ python $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -d "X@${i}"; done
   $ hg bookmarks -d "@1"
 
   $ hg push -f ../a