ctdb-tests: Add function test_case(), tweak unit test header format
commit381134939bd10863a72d5be2cd93a7685479b485
authorMartin Schwenke <martin@meltin.net>
Mon, 28 Feb 2022 22:27:50 +0000 (1 09:27 +1100)
committerAmitay Isaacs <amitay@samba.org>
Wed, 6 Apr 2022 06:34:37 +0000 (6 06:34 +0000)
treead1440a3d3875581aadca2542051e0057aabe945
parentc413838f796587ba819d6f24c766fc0b68ce29b7
ctdb-tests: Add function test_case(), tweak unit test header format

Instead of documenting test cases with a comment, this allows them to
be documented via an argument to a function that is printed when the
test case is run.  This makes it easier locate test case failures when
commands used by test cases look similar,

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