ctdb-tests: Update fetch_ring to take database and key on command line
[vlendec/samba-autobuild/.git] / ctdb / tests / INTEGRATION / database / fetch.001.ring.sh
index 05632024cb50404567004876bfa5a2a63a506b61..33df07b7d882705974aa6174bf42cb96a1243475 100755 (executable)
@@ -23,7 +23,8 @@ try_command_on_node 0 "$CTDB listnodes | wc -l"
 num_nodes="$out"
 
 echo "Running fetch_ring on all $num_nodes nodes."
-try_command_on_node -v -p all $CTDB_TEST_WRAPPER $VALGRIND fetch_ring -n $num_nodes
+testprog_onnode -v -p all \
+               fetch_ring -n "$num_nodes" -D "fetch_ring.tdb" -k "testkey"
 
 pat='^(Waiting for cluster|Fetch\[[[:digit:]]+\]: [[:digit:]]+(\.[[:digit:]]+)? msgs/sec)$'
 sanity_check_output 1 "$pat"