Commit 16cecf8f authored by Matt Harbison's avatar Matt Harbison

tests: replace uses of 'seq' with portable 'seq.py'

parent f554f89a2038
......@@ -167,12 +167,7 @@ divergent bookmarks
(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 @@ divergent bookmarks
@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
......
......@@ -299,7 +299,7 @@ Can re-add file after being deleted + censored
Can censor after revlog has expanded to no longer permit inline storage
$ for x in `seq 0 50000`
$ for x in `python $TESTDIR/seq.py 0 50000`
> do
> echo "Password: hunter$x" >> target
> done
......
......@@ -44,7 +44,7 @@ Committing some changes
Committing only one file
$ echo "a" >> a
$ seq 1 10 > b
$ python $TESTDIR/seq.py 1 10 > b
$ hg add b
$ cat <<EOF >testModeCommands
> TOGGLE
......
......@@ -411,7 +411,7 @@ multiple new heads but also doesn't report too many heads:
adding c
created new head
$ for i in `seq 3`; do hg -R h up -q 0; echo $i > h/b; hg -R h ci -qAm$i; done
$ 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
$ hg -R i push h
pushing to h
......
......@@ -21,13 +21,13 @@ Revert interactive tests
$ mkdir -p a/{folder1,folder2}
$ cd a
$ hg init
$ seq 1 5 > f ; hg add f ; hg commit -m "adding f"
$ seq 1 5 > folder1/g ; hg add folder1/g ; hg commit -m "adding folder1/g"
$ seq 1 5 > folder2/h ; hg add folder2/h ; hg commit -m "adding folder2/h"
$ seq 1 5 > folder1/i ; hg add folder1/i ; hg commit -m "adding folder1/i"
$ echo "a" > f ; seq 1 5 >> f ; echo "b" >> f ; hg commit -m "modifying f"
$ echo "c" > folder1/g ; seq 1 5 >> folder1/g ; echo "d" >> folder1/g ; hg commit -m "modifying folder1/g"
$ echo "e" > folder2/h ; seq 1 5 >> folder2/h ; echo "f" >> folder2/h ; hg commit -m "modifying folder2/h"
$ python $TESTDIR/seq.py 1 5 > f ; hg add f ; hg commit -m "adding f"
$ cat f > folder1/g ; hg add folder1/g ; hg commit -m "adding folder1/g"
$ cat f > folder2/h ; hg add folder2/h ; hg commit -m "adding folder2/h"
$ cat f > folder1/i ; hg add folder1/i ; hg commit -m "adding folder1/i"
$ echo "a" > f ; python $TESTDIR/seq.py 1 5 >> f ; echo "b" >> f ; hg commit -m "modifying f"
$ echo "c" > folder1/g ; python $TESTDIR/seq.py 1 5 >> folder1/g ; echo "d" >> folder1/g ; hg commit -m "modifying folder1/g"
$ echo "e" > folder2/h ; python $TESTDIR/seq.py 1 5 >> folder2/h ; echo "f" >> folder2/h ; hg commit -m "modifying folder2/h"
$ hg tip
changeset: 6:59dd6e4ab63a
tag: tip
......
......@@ -364,9 +364,9 @@ Issue 4438 - test coverage for 3ef893520a85 issues.
#if false
generate new bundles:
$ hg init r1
$ 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
$ 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
$ hg clone -q r1 r2
$ 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
$ 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
$ hg -R r2 branch -q r2change && hg -R r2 ci -qmr2change
$ hg -R r1 bundle -qa $TESTDIR/bundles/issue4438-r1.hg
$ hg -R r2 bundle -qa $TESTDIR/bundles/issue4438-r2.hg
......
......@@ -43,7 +43,7 @@ Tests of the file helper tool
foo: mode=644
#endif
$ seq 10 > bar
$ python $TESTDIR/seq.py 10 > bar
#if unix-permissions symlink
$ chmod +x bar
$ f bar --newer foo --mode --type --size --dump --links --bytes 7
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment