tests: do exclude what is expected
authorSimon Heimberg <simohe@besonet.ch>
Wed, 04 Jul 2012 08:55:16 +0200
changeset 17166 c1a3b151782a
parent 17165 249cc4ec4327
child 17167 5f131ae05905
tests: do exclude what is expected
tests/test-hook.t
--- a/tests/test-hook.t	Fri Jul 06 00:48:45 2012 +0200
+++ b/tests/test-hook.t	Wed Jul 04 08:55:16 2012 +0200
@@ -543,7 +543,7 @@
   $ echo 'precommit.importfail = python:importfail.whatever' >> .hg/hgrc
 
   $ echo a >> a
-  $ hg --traceback commit -ma 2>&1 | egrep '^(exception|Traceback|ImportError)'
+  $ hg --traceback commit -ma 2>&1 | egrep -v '^( +File| {4}[a-zA-Z(])'
   exception from first failed import attempt:
   Traceback (most recent call last):
   ImportError: No module named somebogusmodule
@@ -551,6 +551,8 @@
   Traceback (most recent call last):
   ImportError: No module named hgext_importfail
   Traceback (most recent call last):
+  Abort: precommit.importfail hook is invalid (import of "importfail" failed)
+  abort: precommit.importfail hook is invalid (import of "importfail" failed)
 
 Issue1827: Hooks Update & Commit not completely post operation