]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/cephtool/test.sh: remove heap cli tests
authorKefu Chai <kchai@redhat.com>
Mon, 18 Nov 2019 04:10:17 +0000 (12:10 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 18 Nov 2019 05:51:19 +0000 (13:51 +0800)
"heap" cli commands are removed in the big asok/tell cleanup, they are now
asock commands.

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/workunits/cephtool/test.sh

index f8a0d7efeeb4953a46c7a4beae8c8a33fee487d4..6fc175165788e1f39a6a6a091813430b64467414 100755 (executable)
@@ -2489,32 +2489,12 @@ function test_mon_osd_misc()
   expect_false ceph osd reweight-by-pg 110 boguspoolasdfasdfasdf
 }
 
-function test_mon_heap_profiler()
-{
-  do_test=1
-  set +e
-  # expect 'heap' commands to be correctly parsed
-  ceph heap stats 2>$TMPFILE
-  if [[ $? -eq 22 && `grep 'tcmalloc not enabled' $TMPFILE` ]]; then
-    echo "tcmalloc not enabled; skip heap profiler test"
-    do_test=0
-  fi
-  set -e
-
-  [[ $do_test -eq 0 ]] && return 0
-
-  ceph heap start_profiler
-  ceph heap dump
-  ceph heap stop_profiler
-  ceph heap release
-}
-
 function test_admin_heap_profiler()
 {
   do_test=1
   set +e
   # expect 'heap' commands to be correctly parsed
-  ceph heap stats 2>$TMPFILE
+  ceph daemon osd.0 heap stats 2>$TMPFILE
   if [[ $? -eq 22 && `grep 'tcmalloc not enabled' $TMPFILE` ]]; then
     echo "tcmalloc not enabled; skip heap profiler test"
     do_test=0
@@ -2837,7 +2817,6 @@ MON_TESTS+=" mon_osd_pool_set"
 MON_TESTS+=" mon_osd_tiered_pool_set"
 MON_TESTS+=" mon_osd_erasure_code"
 MON_TESTS+=" mon_osd_misc"
-MON_TESTS+=" mon_heap_profiler"
 MON_TESTS+=" mon_tell"
 MON_TESTS+=" mon_ping"
 MON_TESTS+=" mon_deprecated_commands"