]> git.notmuchmail.org Git - notmuch/commit
test: skip all subtests if external dependencies are missing during init
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Sun, 27 Nov 2011 18:36:15 +0000 (22:36 +0400)
committerDavid Bremner <bremner@debian.org>
Sun, 27 Nov 2011 19:32:11 +0000 (11:32 -0800)
commitf3254667283bc51b97a2d35aa8438420528ba9b3
tree5ed004994e0d3efd4e59d3f4fd5153243e89ce89
parent5b37fb1e25aafc97edfe12850980febc2e32312c
test: skip all subtests if external dependencies are missing during init

Some tests (e.g. crypto) do a common initialization required for all
subtests.  The patch adds a check for missing external dependencies
during this initialization.  If any prerequisites are missing, all
subtests are skipped.

The check is run on the first call of test_reset_state_ function, so
no changes for the tests are needed.
test/test-lib.sh