# HG changeset patch # User Simon Heimberg # Date 1341384916 -7200 # Node ID c1a3b151782a2870769f968a554a371cb2722320 # Parent 249cc4ec4327829ac1b14d7a64c550a966eb3014 tests: do exclude what is expected diff -r 249cc4ec4327 -r c1a3b151782a 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