tests: fix incorrect markup of continued lines of sh commands

This commit is contained in:
Mads Kiilerich 2012-04-23 01:39:26 +02:00
parent 9f4ca6b4df
commit 4c1897dde5
5 changed files with 7 additions and 6 deletions

View File

@ -95,6 +95,7 @@ utestpats = [
(uprefix + r'.*\|\| echo.*(fail|error)',
"explicit exit code checks unnecessary"),
(uprefix + r'set -e', "don't use set -e"),
(uprefix + r'\s', "don't indent commands, use > for continued lines"),
(uprefixc + r'( *)\t', "don't use tabs to indent"),
(uprefixc + r'.*do\s*true;\s*done',
"don't use true as loop body, use sleep 0"),

View File

@ -100,7 +100,7 @@ copy --after on an added file
bar
foo was clean:
$ hg st -AC foo
$ hg st -AC foo
C foo
but it's considered modified after a copy --after --force
$ hg copy -Af bar foo

View File

@ -33,8 +33,8 @@ Testing diff --change
Testing diff --change when merge:
$ for i in 1 2 3 4 5 6 7 8 9 10; do
$ echo $i >> file.txt
$ done
> echo $i >> file.txt
> done
$ hg commit -m "lots of text" # 3
$ sed -e 's,^2$,x,' file.txt > file.txt.tmp

View File

@ -48,7 +48,7 @@ Should display baz only:
[255]
$ echo ".*\.o" > .hgignore
$ hg status
$ hg status
A dir/b.o
? .hgignore
? a.c

View File

@ -28,9 +28,9 @@ Without -v
$ hg serve -a localhost -p $HGPORT -d --pid-file=hg.pid -E errors.log
$ cat hg.pid >> "$DAEMON_PIDS"
$ if [ -f access.log ]; then
$ echo 'access log created - .hg/hgrc respected'
> echo 'access log created - .hg/hgrc respected'
> fi
access log created - .hg/hgrc respected
$ fi
errors