tests/test-bad-extension
changeset 11858 934c7e91c126
parent 11857 9661514f85ae
child 11859 f48178034569
equal deleted inserted replaced
11857:9661514f85ae 11858:934c7e91c126
     1 #!/bin/sh
       
     2 
       
     3 echo 'raise Exception("bit bucket overflow")' > badext.py
       
     4 abspath=`pwd`/badext.py
       
     5 
       
     6 echo '[extensions]' >> $HGRCPATH
       
     7 echo "gpg =" >> $HGRCPATH
       
     8 echo "hgext.gpg =" >> $HGRCPATH
       
     9 echo "badext = $abspath" >> $HGRCPATH
       
    10 echo "badext2 =" >> $HGRCPATH
       
    11 
       
    12 hg -q help help 2>&1 | python -c \
       
    13   "import sys; sys.stdout.write(sys.stdin.read().replace('$abspath', '.../badext.py'))"