From 1474d0f233e5c7d80009437da48b0bb207486ef6 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Wed, 19 Apr 2017 16:54:07 -0700 Subject: [PATCH] test: Fix test_admin_heap_profiler() and enable it Signed-off-by: David Zafman --- qa/workunits/cephtool/test.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 7ce6eba213c..fc58e438080 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1816,12 +1816,12 @@ function test_admin_heap_profiler() [[ $do_test -eq 0 ]] && return 0 - admin_socket = "--admin-daemon out/osd.0.asok" + local admin_socket=$(get_admin_socket osd.0) - ceph --admin $admin_socket heap start_profiler - ceph --admin $admin_socket heap dump - ceph --admin $admin_socket heap stop_profiler - ceph --admin $admin_socket heap release + $SUDO ceph --admin-daemon $admin_socket heap start_profiler + $SUDO ceph --admin-daemon $admin_socket heap dump + $SUDO ceph --admin-daemon $admin_socket heap stop_profiler + $SUDO ceph --admin-daemon $admin_socket heap release } function test_osd_bench() @@ -2049,6 +2049,7 @@ MON_TESTS+=" mon_cephdf_commands" OSD_TESTS+=" osd_bench" OSD_TESTS+=" osd_negative_filestore_merge_threshold" OSD_TESTS+=" tiering_agent" +OSD_TESTS+=" admin_heap_profiler" MDS_TESTS+=" mds_tell" MDS_TESTS+=" mon_mds" -- 2.39.5