tests/test-bad-extension.t
changeset 48874 af0b21d5a930
parent 48410 0b2469bf1227
child 49877 950c39918bd2
equal deleted inserted replaced
48873:5aafc3c5bdec 48874:af0b21d5a930
    52   > EOF
    52   > EOF
    53 
    53 
    54   $ hg -q help help 2>&1 |grep extension
    54   $ hg -q help help 2>&1 |grep extension
    55   *** failed to import extension "badext" from $TESTTMP/badext.py: bit bucket overflow
    55   *** failed to import extension "badext" from $TESTTMP/badext.py: bit bucket overflow
    56   *** failed to import extension "badext2": No module named 'badext2' (py3 !)
    56   *** failed to import extension "badext2": No module named 'badext2' (py3 !)
    57   *** failed to import extension "badext2": No module named badext2 (no-py3 !)
       
    58 
    57 
    59 show traceback
    58 show traceback
    60 
    59 
    61   $ hg -q help help --traceback 2>&1 | egrep ' extension|^Exception|Traceback|ImportError|ModuleNotFound'
    60   $ hg -q help help --traceback 2>&1 | egrep ' extension|^Exception|Traceback|ImportError|ModuleNotFound'
    62   *** failed to import extension "badext" from $TESTTMP/badext.py: bit bucket overflow
    61   *** failed to import extension "badext" from $TESTTMP/badext.py: bit bucket overflow
    63   Traceback (most recent call last):
    62   Traceback (most recent call last):
    64   Exception: bit bucket overflow
    63   Exception: bit bucket overflow
    65   *** failed to import extension "badext2": No module named 'badext2' (py3 !)
    64   *** failed to import extension "badext2": No module named 'badext2' (py3 !)
    66   *** failed to import extension "badext2": No module named badext2 (no-py3 !)
       
    67   Traceback (most recent call last):
    65   Traceback (most recent call last):
    68   ImportError: No module named badext2 (no-py3 !)
       
    69   ImportError: No module named 'hgext.badext2' (py3 no-py36 !)
    66   ImportError: No module named 'hgext.badext2' (py3 no-py36 !)
    70   ModuleNotFoundError: No module named 'hgext.badext2' (py36 !)
    67   ModuleNotFoundError: No module named 'hgext.badext2' (py36 !)
    71   Traceback (most recent call last): (py3 !)
    68   Traceback (most recent call last): (py3 !)
    72   ImportError: No module named 'hgext3rd.badext2' (py3 no-py36 !)
    69   ImportError: No module named 'hgext3rd.badext2' (py3 no-py36 !)
    73   ModuleNotFoundError: No module named 'hgext3rd.badext2' (py36 !)
    70   ModuleNotFoundError: No module named 'hgext3rd.badext2' (py36 !)
   112   YYYY/MM/DD HH:MM:SS (PID)>     - invoking registered callbacks: baddocext
   109   YYYY/MM/DD HH:MM:SS (PID)>     - invoking registered callbacks: baddocext
   113   YYYY/MM/DD HH:MM:SS (PID)>     > callbacks completed in * (glob)
   110   YYYY/MM/DD HH:MM:SS (PID)>     > callbacks completed in * (glob)
   114   YYYY/MM/DD HH:MM:SS (PID)>   - loading extension: badext2
   111   YYYY/MM/DD HH:MM:SS (PID)>   - loading extension: badext2
   115   YYYY/MM/DD HH:MM:SS (PID)>     - could not import hgext.badext2 (No module named *badext2*): trying hgext3rd.badext2 (glob)
   112   YYYY/MM/DD HH:MM:SS (PID)>     - could not import hgext.badext2 (No module named *badext2*): trying hgext3rd.badext2 (glob)
   116   Traceback (most recent call last):
   113   Traceback (most recent call last):
   117   ImportError: No module named badext2 (no-py3 !)
       
   118   ImportError: No module named 'hgext.badext2' (py3 no-py36 !)
   114   ImportError: No module named 'hgext.badext2' (py3 no-py36 !)
   119   ModuleNotFoundError: No module named 'hgext.badext2' (py36 !)
   115   ModuleNotFoundError: No module named 'hgext.badext2' (py36 !)
   120   YYYY/MM/DD HH:MM:SS (PID)>     - could not import hgext3rd.badext2 (No module named *badext2*): trying badext2 (glob)
   116   YYYY/MM/DD HH:MM:SS (PID)>     - could not import hgext3rd.badext2 (No module named *badext2*): trying badext2 (glob)
   121   Traceback (most recent call last):
   117   Traceback (most recent call last):
   122   ImportError: No module named badext2 (no-py3 !)
       
   123   ImportError: No module named 'hgext.badext2' (py3 no-py36 !)
   118   ImportError: No module named 'hgext.badext2' (py3 no-py36 !)
   124   ModuleNotFoundError: No module named 'hgext.badext2' (py36 !)
   119   ModuleNotFoundError: No module named 'hgext.badext2' (py36 !)
   125   Traceback (most recent call last): (py3 !)
   120   Traceback (most recent call last): (py3 !)
   126   ImportError: No module named 'hgext3rd.badext2' (py3 no-py36 !)
   121   ImportError: No module named 'hgext3rd.badext2' (py3 no-py36 !)
   127   ModuleNotFoundError: No module named 'hgext3rd.badext2' (py36 !)
   122   ModuleNotFoundError: No module named 'hgext3rd.badext2' (py36 !)
   128   *** failed to import extension "badext2": No module named 'badext2' (py3 !)
   123   *** failed to import extension "badext2": No module named 'badext2' (py3 !)
   129   *** failed to import extension "badext2": No module named badext2 (no-py3 !)
       
   130   Traceback (most recent call last):
   124   Traceback (most recent call last):
   131   ImportError: No module named 'hgext.badext2' (py3 no-py36 !)
   125   ImportError: No module named 'hgext.badext2' (py3 no-py36 !)
   132   ModuleNotFoundError: No module named 'hgext.badext2' (py36 !)
   126   ModuleNotFoundError: No module named 'hgext.badext2' (py36 !)
   133   Traceback (most recent call last): (py3 !)
   127   Traceback (most recent call last): (py3 !)
   134   ImportError: No module named 'hgext3rd.badext2' (py3 no-py36 !)
   128   ImportError: No module named 'hgext3rd.badext2' (py3 no-py36 !)
   135   ModuleNotFoundError: No module named 'hgext3rd.badext2' (py36 !)
   129   ModuleNotFoundError: No module named 'hgext3rd.badext2' (py36 !)
   136   Traceback (most recent call last): (py3 !)
   130   Traceback (most recent call last): (py3 !)
   137   ModuleNotFoundError: No module named 'badext2' (py36 !)
   131   ModuleNotFoundError: No module named 'badext2' (py36 !)
   138   ImportError: No module named 'badext2' (py3 no-py36 !)
   132   ImportError: No module named 'badext2' (py3 no-py36 !)
   139   ImportError: No module named badext2 (no-py3 !)
       
   140   YYYY/MM/DD HH:MM:SS (PID)> > loaded 2 extensions, total time * (glob)
   133   YYYY/MM/DD HH:MM:SS (PID)> > loaded 2 extensions, total time * (glob)
   141   YYYY/MM/DD HH:MM:SS (PID)> - loading configtable attributes
   134   YYYY/MM/DD HH:MM:SS (PID)> - loading configtable attributes
   142   YYYY/MM/DD HH:MM:SS (PID)> - executing uisetup hooks
   135   YYYY/MM/DD HH:MM:SS (PID)> - executing uisetup hooks
   143   YYYY/MM/DD HH:MM:SS (PID)>   - running uisetup for gpg
   136   YYYY/MM/DD HH:MM:SS (PID)>   - running uisetup for gpg
   144   YYYY/MM/DD HH:MM:SS (PID)>   > uisetup for gpg took * (glob)
   137   YYYY/MM/DD HH:MM:SS (PID)>   > uisetup for gpg took * (glob)
   163 confirm that there's no crash when an extension's documentation is bad
   156 confirm that there's no crash when an extension's documentation is bad
   164 
   157 
   165   $ hg help --keyword baddocext
   158   $ hg help --keyword baddocext
   166   *** failed to import extension "badext" from $TESTTMP/badext.py: bit bucket overflow
   159   *** failed to import extension "badext" from $TESTTMP/badext.py: bit bucket overflow
   167   *** failed to import extension "badext2": No module named 'badext2' (py3 !)
   160   *** failed to import extension "badext2": No module named 'badext2' (py3 !)
   168   *** failed to import extension "badext2": No module named badext2 (no-py3 !)
       
   169   Topics:
   161   Topics:
   170   
   162   
   171    extensions Using Additional Features
   163    extensions Using Additional Features