Mercurial > hg
comparison tests/test-bad-extension.t @ 23172:e955549cd045
tests: write hgrc of more than two lines by using shell heredoc
Here document should be readable than repeating echo commands.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 04 Nov 2014 23:41:46 +0900 |
parents | 005a540e9aee |
children | de23a552fc23 |
comparison
equal
deleted
inserted
replaced
23171:8afae1d5d108 | 23172:e955549cd045 |
---|---|
1 $ echo 'raise Exception("bit bucket overflow")' > badext.py | 1 $ echo 'raise Exception("bit bucket overflow")' > badext.py |
2 $ abspath=`pwd`/badext.py | 2 $ abspath=`pwd`/badext.py |
3 | 3 |
4 $ echo '[extensions]' >> $HGRCPATH | 4 $ cat <<EOF >> $HGRCPATH |
5 $ echo "gpg =" >> $HGRCPATH | 5 > [extensions] |
6 $ echo "hgext.gpg =" >> $HGRCPATH | 6 > gpg = |
7 $ echo "badext = $abspath" >> $HGRCPATH | 7 > hgext.gpg = |
8 $ echo "badext2 =" >> $HGRCPATH | 8 > badext = $abspath |
9 > badext2 = | |
10 > EOF | |
9 | 11 |
10 $ hg -q help help | 12 $ hg -q help help |
11 *** failed to import extension badext from $TESTTMP/badext.py: bit bucket overflow | 13 *** failed to import extension badext from $TESTTMP/badext.py: bit bucket overflow |
12 *** failed to import extension badext2: No module named badext2 | 14 *** failed to import extension badext2: No module named badext2 |
13 hg help [-ec] [TOPIC] | 15 hg help [-ec] [TOPIC] |