From 3e79a035eeb3b8934c0ea394923fd1b6000c725e Mon Sep 17 00:00:00 2001 From: Brad Hubbard Date: Tue, 9 Feb 2021 13:21:56 +1000 Subject: [PATCH] test/lazy-omap-stats: Immediate deep-scrub output Show stdout from the child process as it happens. Signed-off-by: Brad Hubbard --- src/test/lazy-omap-stats/lazy_omap_stats_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/lazy-omap-stats/lazy_omap_stats_test.cc b/src/test/lazy-omap-stats/lazy_omap_stats_test.cc index 87084e941bd..97b0208b9bc 100644 --- a/src/test/lazy-omap-stats/lazy_omap_stats_test.cc +++ b/src/test/lazy-omap-stats/lazy_omap_stats_test.cc @@ -174,13 +174,13 @@ void LazyOmapStatsTest::scrub() const cout << "Scrubbing" << endl; error_code ec; bp::ipstream is; - bp::system("ceph osd deep-scrub all --block", bp::std_out > is, ec); + bp::child c("ceph osd deep-scrub all --block"); + c.wait(ec); if (ec) { cout << "Deep scrub command failed! Error: " << ec.value() << " " << ec.message() << endl; exit(ec.value()); } - cout << is.rdbuf() << endl; } const int LazyOmapStatsTest::find_matches(string& output, regex& reg) const