tests/test-bad-extension.t
author Matt Mackall <mpm@selenic.com>
Sun, 26 Sep 2010 13:44:49 -0500
changeset 12481 70ef9b470efe
parent 12376 97ffc68f71d3
child 12640 6cc4b14fb76b
permissions -rw-r--r--
tests: unify test-pull-pull-corruption

  $ 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 */badext.py: bit bucket overflow (glob)
  *** failed to import extension badext2: No module named badext2
  hg help [TOPIC]
  
  show help for a given topic or a help overview