From 8108b3134c017c22d245fc5b2207a88d44ab0dd2 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 11 Apr 2019 16:58:10 +1000 Subject: ctdb-tests: Extend test to cover ctdb rddumpmemory BUG: https://bugzilla.samba.org/show_bug.cgi?id=13923 Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tests/simple/25_dumpmemory.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ctdb/tests/simple') diff --git a/ctdb/tests/simple/25_dumpmemory.sh b/ctdb/tests/simple/25_dumpmemory.sh index eec55b71c58..4f998bf8f3b 100755 --- a/ctdb/tests/simple/25_dumpmemory.sh +++ b/ctdb/tests/simple/25_dumpmemory.sh @@ -28,8 +28,11 @@ set -e cluster_is_healthy -try_command_on_node -v 0 "$CTDB dumpmemory" - pat='^([[:space:]].+[[:space:]]+contains[[:space:]]+[[:digit:]]+ bytes in[[:space:]]+[[:digit:]]+ blocks \(ref [[:digit:]]+\)[[:space:]]+0x[[:xdigit:]]+|[[:space:]]+reference to: .+|full talloc report on .+ \(total[[:space:]]+[[:digit:]]+ bytes in [[:digit:]]+ blocks\))$' +try_command_on_node -v 0 "$CTDB dumpmemory" +sanity_check_output 10 "$pat" "$out" + +echo +try_command_on_node -v 0 "$CTDB rddumpmemory" sanity_check_output 10 "$pat" "$out" -- cgit v1.2.1