From: Brad Hubbard Date: Tue, 9 Feb 2021 03:21:56 +0000 (+1000) Subject: test/lazy-omap-stats: Immediate deep-scrub output X-Git-Tag: v17.1.0~3015^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3e79a035eeb3b8934c0ea394923fd1b6000c725e;p=ceph.git test/lazy-omap-stats: Immediate deep-scrub output Show stdout from the child process as it happens. Signed-off-by: Brad Hubbard --- 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 87084e941bd6..97b0208b9bc1 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