tests: Fix handling exceptions during the setup phase
Some tests can assert in the setup phase, but the teardown phase is performed anyway. The interrupted setup may result in some variables being undefined. This results with NullPointerException being thrown at teardown when these are accessed. This often shadows the original problem making it harder to troubleshoot. Bug: 150670922 Bug: 237642745 Tag: #feature Sponsor: jpawlowski@ Test: atest BluetoothInstrumentationTests Change-Id: I70e01a0f977e2d99fa57c4f4b95d29a3880bd0c3 Merged-In: I70e01a0f977e2d99fa57c4f4b95d29a3880bd0c3 (cherry picked from commit ea8c9ff2)
Loading
Please register or sign in to comment