brillo image: Add a progress bar for brillo image.
Brillo image is very noisy. Add a progress bar to hide the
output and indicate progress to the user.
The output of brillo image is divided into three stages, each
of which has its own progress bar.
BUG=brillo:856
TEST=manual tests + unittests
Change-Id: If61b6fa407349dcc3695e1db08757f5668c7c0be
Reviewed-on: https://chromium-review.googlesource.com/269510
Reviewed-by: Ralph Nathan <ralphnathan@chromium.org>
Commit-Queue: Ralph Nathan <ralphnathan@chromium.org>
Trybot-Ready: Ralph Nathan <ralphnathan@chromium.org>
Tested-by: Ralph Nathan <ralphnathan@chromium.org>
diff --git a/cli/deploy_unittest.py b/cli/deploy_unittest.py
index ef80bd5..d8a14a1 100644
--- a/cli/deploy_unittest.py
+++ b/cli/deploy_unittest.py
@@ -71,8 +71,8 @@
super(BrilloDeployOperationFake, self).__init__(pkg_count, emerge)
self._queue = queue
- def ParseOutput(self):
- super(BrilloDeployOperationFake, self).ParseOutput()
+ def ParseOutput(self, output=None):
+ super(BrilloDeployOperationFake, self).ParseOutput(output)
self._queue.put('advance')