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/test_utils.cc b/test_utils.cc
index beda798..0071bb8 100644
--- a/test_utils.cc
+++ b/test_utils.cc
@@ -163,7 +163,7 @@
size_t size,
int block_size) {
EXPECT_EQ(0, System(StringPrintf("dd if=/dev/zero of=%s"
- " seek=%zu bs=1 count=1",
+ " seek=%zu bs=1 count=1 status=none",
path.c_str(), size)));
EXPECT_EQ(0, System(StringPrintf("mkfs.ext3 -b %d -F %s",
block_size, path.c_str())));
@@ -176,7 +176,7 @@
ScopedDirRemover mount_path_unlinker(mount_path);
EXPECT_EQ(0, System(StringPrintf("dd if=/dev/zero of=%s"
- " seek=10485759 bs=1 count=1",
+ " seek=10485759 bs=1 count=1 status=none",
path.c_str())));
EXPECT_EQ(0, System(StringPrintf("mkfs.ext3 -b 4096 -F %s", path.c_str())));
EXPECT_EQ(0, System(StringPrintf("mount -o loop %s %s", path.c_str(),