Avoid crashing due to missing trace_output option in Monkey test
BUG=712895 Review-Url: https://codereview.chromium.org/2872813003 Cr-Original-Commit-Position: refs/heads/master@{#471154} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 2b6930c7e92c1c2df1576907c6b965ac72a752ce
This commit is contained in:
Родитель
a3424f5a81
Коммит
00764a82f6
|
@ -94,7 +94,9 @@ class LocalDeviceEnvironment(environment.Environment):
|
|||
self._skip_clear_data = args.skip_clear_data
|
||||
self._target_devices_file = args.target_devices_file
|
||||
self._tool_name = args.tool
|
||||
self._trace_output = args.trace_output
|
||||
self._trace_output = None
|
||||
if hasattr(args, 'trace_output'):
|
||||
self._trace_output = args.trace_output
|
||||
|
||||
devil_chromium.Initialize(
|
||||
output_directory=constants.GetOutDirectory(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче