summaryrefslogtreecommitdiff
path: root/tests/test-bad-extension.t
diff options
context:
space:
mode:
authorLorry <lorry@roadtrain.codethink.co.uk>2012-08-22 14:49:51 +0100
committerLorry <lorry@roadtrain.codethink.co.uk>2012-08-22 14:49:51 +0100
commita498da43c7fdb9f24b73680c02a4a3588cc62d9a (patch)
treedaf8119dae1749b5165b68033a1b23a7375ce9ce /tests/test-bad-extension.t
downloadmercurial-tarball-a498da43c7fdb9f24b73680c02a4a3588cc62d9a.tar.gz
Tarball conversion
Diffstat (limited to 'tests/test-bad-extension.t')
-rw-r--r--tests/test-bad-extension.t15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test-bad-extension.t b/tests/test-bad-extension.t
new file mode 100644
index 0000000..5476c1b
--- /dev/null
+++ b/tests/test-bad-extension.t
@@ -0,0 +1,15 @@
+ $ echo 'raise Exception("bit bucket overflow")' > badext.py
+ $ abspath=`pwd`/badext.py
+
+ $ echo '[extensions]' >> $HGRCPATH
+ $ echo "gpg =" >> $HGRCPATH
+ $ echo "hgext.gpg =" >> $HGRCPATH
+ $ echo "badext = $abspath" >> $HGRCPATH
+ $ echo "badext2 =" >> $HGRCPATH
+
+ $ hg -q help help
+ *** failed to import extension badext from $TESTTMP/badext.py: bit bucket overflow
+ *** failed to import extension badext2: No module named badext2
+ hg help [-ec] [TOPIC]
+
+ show help for a given topic or a help overview