##// END OF EJS Templates
solaris: tests can't use tail -n...
Danek Duvall -
r19628:3193b23e default
parent child Browse files
Show More
@@ -67,6 +67,7 b' testpats = ['
67 67 (r'echo -n', "don't use 'echo -n', use printf"),
68 68 (r'(^| )wc[^|]*$\n(?!.*\(re\))', "filter wc output"),
69 69 (r'head -c', "don't use 'head -c', use 'dd'"),
70 (r'tail -n', "don't use the '-n' option to tail, just use '-<num>'"),
70 71 (r'sha1sum', "don't use sha1sum, use $TESTDIR/md5sum.py"),
71 72 (r'ls.*-\w*R', "don't use 'ls -R', use 'find'"),
72 73 (r'printf.*[^\\]\\([1-9]|0\d)', "don't use 'printf \NNN', use Python"),
@@ -129,7 +129,9 b" Test that --exact on a bad header doesn'"
129 129 $ echo a>>a
130 130 $ hg ci -m3
131 131 $ hg export 2 | head -7 > ../a.patch
132 $ hg export tip | tail -n +8 >> ../a.patch
132 $ hg export tip > out
133 >>> apatch = open("../a.patch", "a")
134 >>> apatch.write("".join(open("out").readlines()[7:]))
133 135
134 136 $ cd ..
135 137 $ hg clone -qr0 repo3 repo3-clone
General Comments 0
You need to be logged in to leave comments. Login now