Tests: Changed hook test to use a command that actually produces output
This commit is contained in:
@@ -47,7 +47,7 @@ class TestHooksOnLaunch(TestCase):
|
|||||||
hookname = 'on-launch-good-env'
|
hookname = 'on-launch-good-env'
|
||||||
self.t.hooks.add_default(hookname, log=True)
|
self.t.hooks.add_default(hookname, log=True)
|
||||||
|
|
||||||
code, out, err = self.t(("_get", "system.os")) # Arbitrary command
|
code, out, err = self.t(("version", )) # Arbitrary command that generates output.
|
||||||
|
|
||||||
hook = self.t.hooks[hookname]
|
hook = self.t.hooks[hookname]
|
||||||
hook.assertTriggeredCount(1)
|
hook.assertTriggeredCount(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user