test/lazy-omap-stats: Immediate deep-scrub output

Show stdout from the child process as it happens.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
This commit is contained in:
Brad Hubbard 2021-02-09 13:21:56 +10:00
parent 1f6f9b24e4
commit 3e79a035ee

View File

@ -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