Autotest: grab additional logging in bluetooth autotests
For the Bluetooth tests which run in the wificells, there are two
involved devices: a DUT and a tester. The server side test creates
xmlrpc connections to both devices.
1. Create logging files on each device, to which logging and command
results are piped.
2. Grab the test results. Normally, sysinfo changes are grabbed
automatically. This test setup has two hosts, which the default
logger is not intended to handle. Instead, copy logs explicitly.
Having logs from the DUT and tester, rather than just the server
side test, will ease debugging attempts.
BUG=chromium:426260
TEST=ran all bluetooth tests on a lab wificell: see all logs
Change-Id: I046726957f0fa83e65d29ec3982142af8c9949cb
Reviewed-on: https://chromium-review.googlesource.com/289860
Reviewed-by: Kris Rambish <krisr@chromium.org>
Commit-Queue: Katherine Threlkeld <kathrelkeld@chromium.org>
Tested-by: Katherine Threlkeld <kathrelkeld@chromium.org>
diff --git a/server/cros/bluetooth/bluetooth_test.py b/server/cros/bluetooth/bluetooth_test.py
index 2a54780..9a23a1f 100644
--- a/server/cros/bluetooth/bluetooth_test.py
+++ b/server/cros/bluetooth/bluetooth_test.py
@@ -51,8 +51,10 @@
"""Close the test member objects."""
if self.interactive:
self.interactive.close()
+ self.device.copy_logs(self.outputdir)
self.device.close()
if self.tester:
+ self.tester.copy_logs(self.outputdir)
self.tester.close()
super(BluetoothTest, self).cleanup()