mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-tests: Clean up and rename simple transaction_loop test
* Rename to clarify purpose of test * Simplify test info to avoid unnecessary bit-rot BUG: https://bugzilla.samba.org/show_bug.cgi?id=12109 Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
18b41fcb51
commit
de04cd5784
@ -3,22 +3,11 @@
|
|||||||
test_info()
|
test_info()
|
||||||
{
|
{
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Verify that the ctdb_transaction test succeeds.
|
Verify that the transaction_loop test succeeds.
|
||||||
|
|
||||||
Prerequisites:
|
Prerequisites:
|
||||||
|
|
||||||
* An active CTDB cluster with at least 2 active nodes.
|
* An active CTDB cluster with at least 2 active nodes.
|
||||||
|
|
||||||
Steps:
|
|
||||||
|
|
||||||
1. Verify that the status on all of the ctdb nodes is 'OK'.
|
|
||||||
2. Run two copies of ctdb_transaction on each node with a 30 second
|
|
||||||
timeout.
|
|
||||||
3. Ensure that all ctdb_transaction processes complete successfully.
|
|
||||||
|
|
||||||
Expected results:
|
|
||||||
|
|
||||||
* ctdb_transaction runs without error.
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,5 +32,5 @@ fi
|
|||||||
t="$CTDB_TEST_WRAPPER $VALGRIND transaction_loop \
|
t="$CTDB_TEST_WRAPPER $VALGRIND transaction_loop \
|
||||||
-n ${num_nodes} -t ${CTDB_TEST_TIMELIMIT}"
|
-n ${num_nodes} -t ${CTDB_TEST_TIMELIMIT}"
|
||||||
|
|
||||||
echo "Running ctdb_transaction on all $num_nodes nodes."
|
echo "Running transaction_loop on all $num_nodes nodes."
|
||||||
try_command_on_node -v -p all "$t"
|
try_command_on_node -v -p all "$t"
|
Loading…
Reference in New Issue
Block a user