From 11bb00358291f0a292da55b4a80ac1927cad010a Mon Sep 17 00:00:00 2001 From: amyangfei Date: Thu, 9 May 2019 17:33:49 +0800 Subject: [PATCH] debug test --- tests/_utils/run_dm_ctl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/_utils/run_dm_ctl b/tests/_utils/run_dm_ctl index 039090af87..cca4814b75 100755 --- a/tests/_utils/run_dm_ctl +++ b/tests/_utils/run_dm_ctl @@ -15,7 +15,7 @@ PWD=$(pwd) binary=$PWD/bin/dmctl.test ts=$(date +"%s") dmctl_log=$workdir/dmctl.$ts.log -echo "dmctl test on \"$cmd\"" +echo "dmctl test function: ${FUNCNAME[0]} cmd: \"$cmd\"" echo "$cmd" | $binary -test.coverprofile="$TEST_DIR/cov.$TEST_NAME.dmctl.$ts.out" DEVEL -master-addr=$master_addr > $dmctl_log 2>&1 for ((i=1; i<$#; i+=2)); do @@ -25,6 +25,7 @@ for ((i=1; i<$#; i+=2)); do got=$(sed "s/$value/$value\n/g" $dmctl_log | grep -c "$value") if [ "$got" != "$expected" ]; then echo "command: $cmd $value count: $got != expected: $expected" + cat $dmctl_log exit 1 fi done