update_engine: Make dd less verbose.
update_engine unit tests use the "dd" command for setting up some test
cases. By default, dd print the status of the operation on success.
This patch removes the status message reducing the unnecessary logs.
BUG=None
TEST=`FEATURES=test emerge-link update_engine`
Change-Id: I6dbb7029a8dce9acf1309da1844af558a2bdab56
Reviewed-on: https://chromium-review.googlesource.com/259190
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Trybot-Ready: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
diff --git a/payload_generator/metadata_unittest.cc b/payload_generator/metadata_unittest.cc
index 6bc56b7..492fd69 100644
--- a/payload_generator/metadata_unittest.cc
+++ b/payload_generator/metadata_unittest.cc
@@ -84,9 +84,9 @@
string a_img_mnt;
test_utils::ScopedLoopMounter a_img_mount(a_img, &a_img_mnt, 0);
test_utils::System(
- base::StringPrintf("dd if=/dev/zero of=%s/test_file bs=%d count=%d",
- a_img_mnt.c_str(), block_size,
- EXT2_NDIR_BLOCKS + 1));
+ base::StringPrintf(
+ "dd if=/dev/zero of=%s/test_file bs=%d count=%d status=none",
+ a_img_mnt.c_str(), block_size, EXT2_NDIR_BLOCKS + 1));
}
test_utils::System(