ctdb-tests: Add new test functions for running commands on nodes
authorMartin Schwenke <martin@meltin.net>
Mon, 12 Aug 2019 11:01:20 +0000 (21:01 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 4 Oct 2019 09:41:28 +0000 (09:41 +0000)
commit0ec83f32faddf6ef9f5fdd11ecd6d651459dd650
tree0f30b6d749cd9880f84593cd1e4322a4bc9cc460
parent38b838b59cbece5c6a7bda40e8d411a6c56d1458
ctdb-tests: Add new test functions for running commands on nodes

* ctdb_onnode()
* testprog_onnode()
* function_onnode()

These encapsulate familiar patterns found when running
try_command_on_node().  The new function names are more concise and
encourage more readable tests.  Test writers can do less thinking
about the subtleties of running different types of commands on nodes.
For example, these functions ensure that $CTDB and $VALGRIND are used
in the correct contexts.

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