]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/lazy-omap-stats: Immediate deep-scrub output 39383/head
authorBrad Hubbard <bhubbard@redhat.com>
Tue, 9 Feb 2021 03:21:56 +0000 (13:21 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Tue, 9 Feb 2021 22:02:00 +0000 (08:02 +1000)
Show stdout from the child process as it happens.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/test/lazy-omap-stats/lazy_omap_stats_test.cc

index 87084e941bd667a0cb963577647ce0b9b2ad8543..97b0208b9bc17cab0a7a6fd7002185dee23be2b5 100644 (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