Skip to content

Commit 69e67de

Browse files
Update device check in download_trusty_symbols_if_needed (#4475)
The device check is updated to use find instead of a literal match so that sanitized version of the devices (e.g: cheetah_hwasan) can also be used --------- Co-authored-by: jonathanmetzman <[email protected]>
1 parent 10461e6 commit 69e67de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/clusterfuzz/_internal/platforms/android/symbols_downloader.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,12 @@ def download_trusty_symbols_if_needed(symbols_directory, app_name, bid):
180180
"""Downloads and extracts Trusted App ELF files"""
181181
ab_target = ''
182182
device = settings.get_build_parameters().get('target')
183-
if device in ['cheetah', 'panther']:
183+
if 'cheetah' in device or 'panther' in device:
184184
ab_target = 'cloudripper-fuzz-test-debug'
185-
if device in ['oriole', 'raven', 'bluejay']:
185+
elif 'oriole' in device or 'raven' in device or 'bluejay' in device:
186186
ab_target = 'slider-fuzz-test-debug'
187+
else:
188+
logs.error(f'Unsupported device {device}.')
187189

188190
branch = 'polygon-trusty-whitechapel-master'
189191
if not bid:

0 commit comments

Comments
 (0)