Mercurial > hg
comparison tests/test-hook.t @ 17166:c1a3b151782a
tests: do exclude what is expected
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Wed, 04 Jul 2012 08:55:16 +0200 |
parents | 28ed1c4511ce |
children | 4253cfee08ef |
comparison
equal
deleted
inserted
replaced
17165:249cc4ec4327 | 17166:c1a3b151782a |
---|---|
541 | 541 |
542 $ echo '[hooks]' > .hg/hgrc | 542 $ echo '[hooks]' > .hg/hgrc |
543 $ echo 'precommit.importfail = python:importfail.whatever' >> .hg/hgrc | 543 $ echo 'precommit.importfail = python:importfail.whatever' >> .hg/hgrc |
544 | 544 |
545 $ echo a >> a | 545 $ echo a >> a |
546 $ hg --traceback commit -ma 2>&1 | egrep '^(exception|Traceback|ImportError)' | 546 $ hg --traceback commit -ma 2>&1 | egrep -v '^( +File| {4}[a-zA-Z(])' |
547 exception from first failed import attempt: | 547 exception from first failed import attempt: |
548 Traceback (most recent call last): | 548 Traceback (most recent call last): |
549 ImportError: No module named somebogusmodule | 549 ImportError: No module named somebogusmodule |
550 exception from second failed import attempt: | 550 exception from second failed import attempt: |
551 Traceback (most recent call last): | 551 Traceback (most recent call last): |
552 ImportError: No module named hgext_importfail | 552 ImportError: No module named hgext_importfail |
553 Traceback (most recent call last): | 553 Traceback (most recent call last): |
554 Abort: precommit.importfail hook is invalid (import of "importfail" failed) | |
555 abort: precommit.importfail hook is invalid (import of "importfail" failed) | |
554 | 556 |
555 Issue1827: Hooks Update & Commit not completely post operation | 557 Issue1827: Hooks Update & Commit not completely post operation |
556 | 558 |
557 commit and update hooks should run after command completion | 559 commit and update hooks should run after command completion |
558 | 560 |