[PATCH] test-tools: replace seq with seq.py for OS X support
Matt Harbison
mharbison at attotech.com
Tue Mar 17 18:39:50 UTC 2015
# HG changeset patch
# User Matt Harbison <mharbison at attotech.com>
# Date 1426616484 14400
# Tue Mar 17 14:21:24 2015 -0400
# Node ID 0f37c06f44f4fa7c17f85c84358f488f6a1c372b
# Parent b7f936f47f2b104a60840bae571e009742126afc
test-tools: replace seq with seq.py for OS X support
10.6.8 doesn't have it, while 10.10 does. I'm not sure when it was added.
There's a difference in this seq.py and the one proposed by foozy[1], in that
this starts at 1. Otherwise, other test diffs occurred.
[1] http://www.selenic.com/pipermail/mercurial-devel/2015-March/067356.html
diff --git a/tests/test-tools.t b/tests/test-tools.t
--- a/tests/test-tools.t
+++ b/tests/test-tools.t
@@ -1,4 +1,9 @@
Tests of the file helper tool
+ $ cat > $TESTTMP/seq.py <<EOF
+ > import sys
+ > for i in xrange(*[int(a) for a in sys.argv[1:]]):
+ > print i+1
+ > EOF
$ f -h
?sage: f [options] [filenames] (glob)
@@ -43,7 +48,7 @@
foo: mode=644
#endif
- $ seq 10 > bar
+ $ python $TESTTMP/seq.py 10 > bar
#if unix-permissions symlink
$ chmod +x bar
$ f bar --newer foo --mode --type --size --dump --links --bytes 7
More information about the Mercurial-devel
mailing list