##// END OF EJS Templates
test-extension: improve test readability...
Gregory Szorc -
r23869:d9967b82 default
parent child Browse files
Show More
@@ -867,6 +867,7 b' Broken disabled extension and command:'
867 > """throws an exception"""
867 > """throws an exception"""
868 > raise Bogon()
868 > raise Bogon()
869 > EOF
869 > EOF
870
870 No declared supported version, extension complains:
871 No declared supported version, extension complains:
871 $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*'
872 $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*'
872 ** Unknown exception encountered with possibly-broken third-party extension throw
873 ** Unknown exception encountered with possibly-broken third-party extension throw
@@ -876,6 +877,7 b' No declared supported version, extension'
876 ** Python * (glob)
877 ** Python * (glob)
877 ** Mercurial Distributed SCM * (glob)
878 ** Mercurial Distributed SCM * (glob)
878 ** Extensions loaded: throw
879 ** Extensions loaded: throw
880
879 empty declaration of supported version, extension complains:
881 empty declaration of supported version, extension complains:
880 $ echo "testedwith = ''" >> throw.py
882 $ echo "testedwith = ''" >> throw.py
881 $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*'
883 $ hg --config extensions.throw=throw.py throw 2>&1 | egrep '^\*\*'
@@ -886,6 +888,7 b' empty declaration of supported version, '
886 ** Python * (glob)
888 ** Python * (glob)
887 ** Mercurial Distributed SCM (*) (glob)
889 ** Mercurial Distributed SCM (*) (glob)
888 ** Extensions loaded: throw
890 ** Extensions loaded: throw
891
889 If the extension specifies a buglink, show that:
892 If the extension specifies a buglink, show that:
890 $ echo 'buglink = "http://example.com/bts"' >> throw.py
893 $ echo 'buglink = "http://example.com/bts"' >> throw.py
891 $ rm -f throw.pyc throw.pyo
894 $ rm -f throw.pyc throw.pyo
@@ -897,6 +900,7 b' If the extension specifies a buglink, sh'
897 ** Python * (glob)
900 ** Python * (glob)
898 ** Mercurial Distributed SCM (*) (glob)
901 ** Mercurial Distributed SCM (*) (glob)
899 ** Extensions loaded: throw
902 ** Extensions loaded: throw
903
900 If the extensions declare outdated versions, accuse the older extension first:
904 If the extensions declare outdated versions, accuse the older extension first:
901 $ echo "from mercurial import util" >> older.py
905 $ echo "from mercurial import util" >> older.py
902 $ echo "util.version = lambda:'2.2'" >> older.py
906 $ echo "util.version = lambda:'2.2'" >> older.py
@@ -912,6 +916,7 b' If the extensions declare outdated versi'
912 ** Python * (glob)
916 ** Python * (glob)
913 ** Mercurial Distributed SCM (version 2.2)
917 ** Mercurial Distributed SCM (version 2.2)
914 ** Extensions loaded: throw, older
918 ** Extensions loaded: throw, older
919
915 One extension only tested with older, one only with newer versions:
920 One extension only tested with older, one only with newer versions:
916 $ echo "util.version = lambda:'2.1.0'" >> older.py
921 $ echo "util.version = lambda:'2.1.0'" >> older.py
917 $ rm -f older.pyc older.pyo
922 $ rm -f older.pyc older.pyo
@@ -924,6 +929,7 b' One extension only tested with older, on'
924 ** Python * (glob)
929 ** Python * (glob)
925 ** Mercurial Distributed SCM (version 2.1.0)
930 ** Mercurial Distributed SCM (version 2.1.0)
926 ** Extensions loaded: throw, older
931 ** Extensions loaded: throw, older
932
927 Older extension is tested with current version, the other only with newer:
933 Older extension is tested with current version, the other only with newer:
928 $ echo "util.version = lambda:'1.9.3'" >> older.py
934 $ echo "util.version = lambda:'1.9.3'" >> older.py
929 $ rm -f older.pyc older.pyo
935 $ rm -f older.pyc older.pyo
General Comments 0
You need to be logged in to leave comments. Login now