OSDN Git Service

Fix cert test crashes when running on remote machine
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 4 Nov 2020 12:47:25 +0000 (13:47 +0100)
committerJakub Pawlowski <jpawlowski@google.com>
Wed, 4 Nov 2020 21:12:46 +0000 (22:12 +0100)
commit729f0a45ca99bcd00d835a5a863010a396e839d0
treeb4f470bb54edd4a8fab9a9a8c1bfa1c3ee455b5b
parent6b0116452657d664c36da94b99ba6edf9938f90f
Fix cert test crashes when running on remote machine

When cert test is executed on a remote machine, against locally
connected devices with ports forwarded to remote machine,
crashes are observed during cleanup that happens in setup.

This is for cleanup of forwarded ports, when no forwarding is setup, or
for removal of btsnoop.log when it's not present.

After this patch, non-fatal errors would print error message rather than
crash the whole test.

Tag: #gd-refactor
Test: gd/cert/run LeSecurityTest
Change-Id: I68df152ba83a416cb81b26f31ae9ebe3698e3f02
gd/cert/gd_device.py