auto_updater: Remove code for getting the hostlog files.
There are two ways to get the hostlog: one in chromite and one in
autotest. Since the only user of the chromite version is
autoupdate_EndToEndTest we have updated the test to use the autotest
version and we can now delete the chromite version.
BUG=chromium:1088196
TEST=autoupdate_EndToEndTest
Change-Id: I842107e8f910395a37211ba9407d16d4c50229c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/2382906
Tested-by: David Haddock <dhaddock@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Amin Hassani <ahassani@chromium.org>
Commit-Queue: David Haddock <dhaddock@chromium.org>
diff --git a/lib/auto_updater.py b/lib/auto_updater.py
index d12edb0..2258e02 100644
--- a/lib/auto_updater.py
+++ b/lib/auto_updater.py
@@ -514,7 +514,6 @@
logging.warning(nebraska.PrintLog() or 'No nebraska log is available.')
raise RootfsUpdateError('Failed to perform rootfs update: %r' % e)
finally:
- self._CopyHostLogFromDevice(nebraska, 'rootfs')
nebraska.Stop()
nebraska.CollectLogs(os.path.join(self.tempdir,
@@ -708,21 +707,6 @@
logging.info('Disabling rootfs verification on the device...')
self.device.DisableRootfsVerification()
- def _CopyHostLogFromDevice(self, nebraska, partial_filename):
- """Copy the hostlog file generated by the nebraska from the device.
-
- Args:
- nebraska: The nebraska_wrapper.RemoteNebraskawrapper instance.
- partial_filename: A string that will be appended to
- 'devserver_hostlog_'. This is to handle current autotests.
- """
- if not self.is_au_endtoendtest:
- return
-
- nebraska_hostlog_file = os.path.join(
- self.tempdir, 'devserver_hostlog_' + partial_filename)
- nebraska.CollectRequestLogs(nebraska_hostlog_file)
-
def _Reboot(self, error_stage, timeout=None):
try:
if timeout is None:
@@ -1047,5 +1031,4 @@
logging.error('Post reboot update check failed: %s', str(err))
logging.warning(nebraska.PrintLog() or 'No nebraska log is available.')
finally:
- self._CopyHostLogFromDevice(nebraska, 'reboot')
nebraska.Stop()