##// END OF EJS Templates
tests: unify test-bad-extension
Martin Geisler -
r11858:934c7e91 default
parent child Browse files
Show More
@@ -1,13 +1,15 b''
1 #!/bin/sh
1 $ echo 'raise Exception("bit bucket overflow")' > badext.py
2
2 $ abspath=`pwd`/badext.py
3 echo 'raise Exception("bit bucket overflow")' > badext.py
4 abspath=`pwd`/badext.py
5
3
6 echo '[extensions]' >> $HGRCPATH
4 $ echo '[extensions]' >> $HGRCPATH
7 echo "gpg =" >> $HGRCPATH
5 $ echo "gpg =" >> $HGRCPATH
8 echo "hgext.gpg =" >> $HGRCPATH
6 $ echo "hgext.gpg =" >> $HGRCPATH
9 echo "badext = $abspath" >> $HGRCPATH
7 $ echo "badext = $abspath" >> $HGRCPATH
10 echo "badext2 =" >> $HGRCPATH
8 $ echo "badext2 =" >> $HGRCPATH
11
9
12 hg -q help help 2>&1 | python -c \
10 $ hg -q help help
13 "import sys; sys.stdout.write(sys.stdin.read().replace('$abspath', '.../badext.py'))"
11 \*\*\* failed to import extension badext from .*/badext.py: bit bucket overflow
12 \*\*\* failed to import extension badext2: No module named badext2
13 hg help [TOPIC]
14
15 show help for a given topic or a help overview
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now