Skip to content

Commit 9273833

Browse files
authored
refactor: improve logging for test_metric_helper (#300)
Signed-off-by: Matias Cabral <[email protected]>
1 parent ad151ab commit 9273833

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

conformance_tests/tools/metrics/src/test_metric.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,7 +2167,10 @@ LZT_TEST(
21672167
fs::path helper_path(fs::current_path() / "metrics");
21682168
std::vector<fs::path> paths;
21692169
paths.push_back(helper_path);
2170+
paths.push_back(fs::current_path());
21702171
fs::path helper = bp::search_path("test_metric_helper", paths);
2172+
ASSERT_FALSE(helper.empty())
2173+
<< "Could not find test_metric_helper in current or ./metrics/ directory";
21712174
bp::child metric_helper(helper);
21722175

21732176
// start monitor
@@ -2251,7 +2254,11 @@ LZT_TEST(
22512254
fs::path helper_path(fs::current_path() / "metrics");
22522255
std::vector<fs::path> paths;
22532256
paths.push_back(helper_path);
2257+
paths.push_back(fs::current_path());
22542258
fs::path helper = bp::search_path("test_metric_helper", paths);
2259+
ASSERT_FALSE(helper.empty())
2260+
<< "Could not find test_metric_helper in current or ./metrics/ directory";
2261+
22552262
bp::opstream child_input;
22562263
bp::child metric_helper(helper, "-i", bp::std_in < child_input);
22572264

0 commit comments

Comments
 (0)