Devserver: add more detailed error message for debugging
This CL adds a feature that devserver will return more detailed
error message when CrOS auto-update process failed.
BUG=chromium:652033
TEST=Run job on local autotest & devserver.
Change-Id: I776ee5270b5171ccfa04748b73f18b72a780123b
Reviewed-on: https://chromium-review.googlesource.com/394769
Commit-Ready: Xixuan Wu <xixuan@chromium.org>
Tested-by: Xixuan Wu <xixuan@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>
diff --git a/cros_update_progress.py b/cros_update_progress.py
index c911def..17a60e0 100644
--- a/cros_update_progress.py
+++ b/cros_update_progress.py
@@ -126,4 +126,5 @@
def ReadStatus(self):
"""Read auto-update progress from status tracking file."""
- return ReadOneLine(self.track_status_file)
+ with open(self.track_status_file, 'r') as out_log:
+ return out_log.read().rstrip('\n')