From 6c4992aeca6cb1e683d6b7ed7780ad1e42971fd0 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 20 Jul 2017 17:37:03 -0400 Subject: [PATCH] qa/workunits/cephtool/test.sh: fix test to watch audit channel Signed-off-by: Sage Weil --- qa/workunits/cephtool/test.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index f23ec5ee7e2..694e1968feb 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -163,6 +163,9 @@ function ceph_watch_start() if [ -n "$1" ]; then whatch_opt=--watch-$1 + if [ -n "$2" ]; then + whatch_opt+=" --watch-channel $2" + fi fi CEPH_WATCH_FILE=${TEMP_DIR}/CEPH_WATCH_$$ @@ -2269,11 +2272,11 @@ function test_mon_tell() sleep 1 - ceph_watch_start debug + ceph_watch_start debug audit ceph tell mon.a version ceph_watch_wait 'mon.a \[DBG\] from.*cmd=\[{"prefix": "version"}\]: dispatch' - ceph_watch_start debug + ceph_watch_start debug audit ceph tell mon.b version ceph_watch_wait 'mon.b \[DBG\] from.*cmd=\[{"prefix": "version"}\]: dispatch' } -- 2.39.5