TW-1667: hooks: upon failure indicate which hook failed

- Thanks to Daniel Shahaf.
This commit is contained in:
Paul Beckingham 2017-01-16 13:14:08 -05:00
parent 098eef099a
commit 44dc19e21b
14 changed files with 106 additions and 93 deletions

View file

@ -147,7 +147,7 @@ class TestHooksOnAdd(TestCase):
self.t.hooks.add_default(hookname, log=True)
code, out, err = self.t.runError("add foo")
self.assertIn("Hook Error: JSON Object missing 'uuid' attribute.", err)
self.assertIn("Hook Error: JSON Object missing 'uuid' attribute from hook script: on-add-misbehave6", err)
hook = self.t.hooks[hookname]
hook.assertTriggeredCount(1)