]> git.notmuchmail.org Git - notmuch/commit
test: make test_emacs call post-command-hook
authorDavid Bremner <david@tethera.net>
Fri, 9 May 2014 00:20:07 +0000 (01:20 +0100)
committerDavid Bremner <david@tethera.net>
Sun, 13 Jul 2014 15:33:53 +0000 (12:33 -0300)
commiteed6c75556e18d943ac690598edceef0c4ee59d5
treeb07f2fa552d330dba8374d3855a93694328c7b11
parentbc180bd388f4c2335ff2d15db9bf91d1f7de1bce
test: make test_emacs call post-command-hook

The unread/read changes will use the post-command-hook. test_emacs
does not call the post-command-hook. This adds a notmuch-test-progn
which takes a list of commands as argument and executes them in turn
but runs the post-command-hook after each one.

The caller can batch operations (ie to stop post-command-hook from
being interleaved) by wrapping the batch of operations inside a progn.

We also explicitly run the post-command-hook before getting the output
from a test; this makes sense as this will be a place the user would
be seeing the information.
test/test-lib.el
test/test-lib.sh