##// END OF EJS Templates
tests: replace uses of 'seq' with portable 'seq.py'
Matt Harbison -
r24361:8de8cd34 default
parent child Browse files
Show More
@@ -167,12 +167,7 b' divergent bookmarks'
167 167
168 168 (test that too many divergence of bookmark)
169 169
170 $ cat > $TESTTMP/seq.py <<EOF
171 > import sys
172 > for i in xrange(*[int(a) for a in sys.argv[1:]]):
173 > print i
174 > EOF
175 $ python $TESTTMP/seq.py 1 100 | while read i; do hg bookmarks -r 000000000000 "X@${i}"; done
170 $ python $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -r 000000000000 "X@${i}"; done
176 171 $ hg pull ../a
177 172 pulling from ../a
178 173 searching for changes
@@ -200,7 +195,7 b' divergent bookmarks'
200 195 @1 2:0d2164f0ce0d
201 196 @foo 2:0d2164f0ce0d
202 197
203 $ python $TESTTMP/seq.py 1 100 | while read i; do hg bookmarks -d "X@${i}"; done
198 $ python $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -d "X@${i}"; done
204 199 $ hg bookmarks -d "@1"
205 200
206 201 $ hg push -f ../a
@@ -299,7 +299,7 b' Can re-add file after being deleted + ce'
299 299
300 300 Can censor after revlog has expanded to no longer permit inline storage
301 301
302 $ for x in `seq 0 50000`
302 $ for x in `python $TESTDIR/seq.py 0 50000`
303 303 > do
304 304 > echo "Password: hunter$x" >> target
305 305 > done
@@ -44,7 +44,7 b' Committing some changes'
44 44 Committing only one file
45 45
46 46 $ echo "a" >> a
47 $ seq 1 10 > b
47 $ python $TESTDIR/seq.py 1 10 > b
48 48 $ hg add b
49 49 $ cat <<EOF >testModeCommands
50 50 > TOGGLE
@@ -411,7 +411,7 b" multiple new heads but also doesn't repo"
411 411 adding c
412 412 created new head
413 413
414 $ for i in `seq 3`; do hg -R h up -q 0; echo $i > h/b; hg -R h ci -qAm$i; done
414 $ for i in `python $TESTDIR/seq.py 3`; do hg -R h up -q 0; echo $i > h/b; hg -R h ci -qAm$i; done
415 415
416 416 $ hg -R i push h
417 417 pushing to h
@@ -21,13 +21,13 b' 10 run the same test than 8 from within '
21 21 $ mkdir -p a/{folder1,folder2}
22 22 $ cd a
23 23 $ hg init
24 $ seq 1 5 > f ; hg add f ; hg commit -m "adding f"
25 $ seq 1 5 > folder1/g ; hg add folder1/g ; hg commit -m "adding folder1/g"
26 $ seq 1 5 > folder2/h ; hg add folder2/h ; hg commit -m "adding folder2/h"
27 $ seq 1 5 > folder1/i ; hg add folder1/i ; hg commit -m "adding folder1/i"
28 $ echo "a" > f ; seq 1 5 >> f ; echo "b" >> f ; hg commit -m "modifying f"
29 $ echo "c" > folder1/g ; seq 1 5 >> folder1/g ; echo "d" >> folder1/g ; hg commit -m "modifying folder1/g"
30 $ echo "e" > folder2/h ; seq 1 5 >> folder2/h ; echo "f" >> folder2/h ; hg commit -m "modifying folder2/h"
24 $ python $TESTDIR/seq.py 1 5 > f ; hg add f ; hg commit -m "adding f"
25 $ cat f > folder1/g ; hg add folder1/g ; hg commit -m "adding folder1/g"
26 $ cat f > folder2/h ; hg add folder2/h ; hg commit -m "adding folder2/h"
27 $ cat f > folder1/i ; hg add folder1/i ; hg commit -m "adding folder1/i"
28 $ echo "a" > f ; python $TESTDIR/seq.py 1 5 >> f ; echo "b" >> f ; hg commit -m "modifying f"
29 $ echo "c" > folder1/g ; python $TESTDIR/seq.py 1 5 >> folder1/g ; echo "d" >> folder1/g ; hg commit -m "modifying folder1/g"
30 $ echo "e" > folder2/h ; python $TESTDIR/seq.py 1 5 >> folder2/h ; echo "f" >> folder2/h ; hg commit -m "modifying folder2/h"
31 31 $ hg tip
32 32 changeset: 6:59dd6e4ab63a
33 33 tag: tip
@@ -364,9 +364,9 b' Issue 4438 - test coverage for 3ef893520'
364 364 #if false
365 365 generate new bundles:
366 366 $ hg init r1
367 $ for i in `seq 101`; do hg -R r1 up -qr null && hg -R r1 branch -q b$i && hg -R r1 ci -qmb$i; done
367 $ for i in `python $TESTDIR/seq.py 101`; do hg -R r1 up -qr null && hg -R r1 branch -q b$i && hg -R r1 ci -qmb$i; done
368 368 $ hg clone -q r1 r2
369 $ for i in `seq 10`; do hg -R r1 up -qr null && hg -R r1 branch -q c$i && hg -R r1 ci -qmc$i; done
369 $ for i in `python $TESTDIR/seq.py 10`; do hg -R r1 up -qr null && hg -R r1 branch -q c$i && hg -R r1 ci -qmc$i; done
370 370 $ hg -R r2 branch -q r2change && hg -R r2 ci -qmr2change
371 371 $ hg -R r1 bundle -qa $TESTDIR/bundles/issue4438-r1.hg
372 372 $ hg -R r2 bundle -qa $TESTDIR/bundles/issue4438-r2.hg
@@ -43,7 +43,7 b' Tests of the file helper tool'
43 43 foo: mode=644
44 44 #endif
45 45
46 $ seq 10 > bar
46 $ python $TESTDIR/seq.py 10 > bar
47 47 #if unix-permissions symlink
48 48 $ chmod +x bar
49 49 $ f bar --newer foo --mode --type --size --dump --links --bytes 7
General Comments 0
You need to be logged in to leave comments. Login now