Sometimes, devices may accidentally go offline during test with "device 'UUID' not found" error.
In this scenario,
you will got "'NoneType' object has no attribute 'readline'" AttributeError
when you call create_output_excerpts in teardown_test().
This PR checks _adb_logcat_file_obj is not None before calling readline().
An empty excerpt would be created at excerpt_file_path if device offline.
Sometimes, devices may accidentally go offline during test with "device 'UUID' not found" error.
In this scenario,
you will got "'NoneType' object has no attribute 'readline'" AttributeError
when you call
create_output_excerpts
inteardown_test()
.This PR checks
_adb_logcat_file_obj
is not None before callingreadline()
.An empty excerpt would be created at excerpt_file_path if device offline.
This change is![Reviewable](https://reviewable.io/review_button.svg)