From b08c71e616382ff1581a84410a6ec7fe5886d03d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCrten?= <sebastian@mobanisto.de> Date: Tue, 7 Feb 2023 16:12:06 +0100 Subject: [PATCH] At end of test, pull log file from device --- mobly/mesh-run/public_mesh_test.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mobly/mesh-run/public_mesh_test.py b/mobly/mesh-run/public_mesh_test.py index de0cac8..c9dc0e1 100644 --- a/mobly/mesh-run/public_mesh_test.py +++ b/mobly/mesh-run/public_mesh_test.py @@ -30,5 +30,13 @@ class PublicMeshTest(base_test.BaseTestClass): print("wait for device 2") self.droid2.adb.wait_for_device() + print("pulling logs from device 1") + self.pull_logs(self.droid1) + print("pulling logs from device 2") + self.pull_logs(self.droid2) + + def pull_logs(sefl, droid): + droid.adb.pull(["/storage/emulated/0/Android/data/org.briarproject.publicmesh/files/app.log", droid.log_path + "/app.log"]) + if __name__ == '__main__': test_runner.main() -- GitLab