From 6bffcbdc69307100849f1a76c3875519ddb032fa Mon Sep 17 00:00:00 2001 From: Giovanni LB Date: Mon, 4 Mar 2024 21:56:57 -0300 Subject: [PATCH] Fixing metadata path for CTF plugin Change-Id: I04f81c38e2f9f2da9f4ac771ae9dff04cd6a76c6 --- plugin/ctf/ctf.cpp | 2 +- tests-v2/featuretests/profiler/profiler_gtest.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/ctf/ctf.cpp b/plugin/ctf/ctf.cpp index 69598cbe68..648242be06 100644 --- a/plugin/ctf/ctf.cpp +++ b/plugin/ctf/ctf.cpp @@ -95,7 +95,7 @@ ROCPROFILER_EXPORT int rocprofiler_plugin_initialize(const uint32_t rocprofiler_ // Get ROCM install path retVal = getROCmInstallPath( &installPath, &installPathLen ); if(PathSuccess == retVal){ - metadata_path = fs::path(installPath); + metadata_path = fs::path(installPath) / fs::path{CTF_PLUGIN_METADATA_FILE_PATH}; }else { std::cout << "Failed to get ROCm Install Path: " << retVal << std::endl; } diff --git a/tests-v2/featuretests/profiler/profiler_gtest.cpp b/tests-v2/featuretests/profiler/profiler_gtest.cpp index c8ff773a1b..9808b3875f 100644 --- a/tests-v2/featuretests/profiler/profiler_gtest.cpp +++ b/tests-v2/featuretests/profiler/profiler_gtest.cpp @@ -1347,7 +1347,7 @@ class VectorAddCTFTest : public CTFPluginTest { bool hasFile() { return hasMetadataInDir("/tmp/tests-v2/ctf/"); } }; -TEST_F(VectorAddCTFTest, DISABLED_WhenRunningProfilerWithCTFTest) { EXPECT_EQ(hasFile(), true); } +TEST_F(VectorAddCTFTest, WhenRunningProfilerWithCTFTest) { EXPECT_EQ(hasFile(), true); } class VectorAddCTFMPITest : public CTFPluginTest { protected: @@ -1362,7 +1362,7 @@ class VectorAddCTFMPITest : public CTFPluginTest { bool hasFile() { return hasMetadataInDir("/tmp/tests-v2/ctf_7/"); } }; -TEST_F(VectorAddCTFMPITest, DISABLED_WhenRunningProfilerWithCTFTest) { EXPECT_EQ(hasFile(), true); } +TEST_F(VectorAddCTFMPITest, WhenRunningProfilerWithCTFTest) { EXPECT_EQ(hasFile(), true); } /* * ###################################################