ctdb-tests: Add test cleanup hooks
authorAmitay Isaacs <amitay@gmail.com>
Mon, 6 Jul 2015 05:14:53 +0000 (15:14 +1000)
committerMartin Schwenke <martins@samba.org>
Thu, 9 Jul 2015 04:23:21 +0000 (06:23 +0200)
commitaa9ca809bebb17136e05817bc4c89c208424f52f
treebe6cd606f3a90ebbbc385d290d1eaa7bc3205e5c
parent2290e7a01e606f3fe695301ffee846de9a28dd7f
ctdb-tests: Add test cleanup hooks

To do any cleanup before exiting the test, register hooks with
test_cleanup().  Multiple hooks can be registered.  All the hooks will
be called before exiting from the test.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/tests/onnode/scripts/local.sh
ctdb/tests/scripts/unit.sh