mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 20:58:19 +08:00
Fix: ValueError in get_test_methods()
This commit is contained in:
@@ -168,14 +168,15 @@ class Benchmark(DaemonBase, CampaignUI):
|
||||
screenshot = ['ADB', 'ADB_nc', 'uiautomator2', 'aScreenCap', 'aScreenCap_nc', 'DroidCast', 'DroidCast_raw']
|
||||
click = ['ADB', 'uiautomator2', 'minitouch']
|
||||
|
||||
def remove(*args):
|
||||
return [l for l in screenshot if l not in args]
|
||||
|
||||
# No ascreencap on Android > 9
|
||||
if device in ['emulator_android_12', 'android_phone_12']:
|
||||
screenshot.remove('aScreenCap')
|
||||
screenshot.remove('aScreenCap_nc')
|
||||
remove('aScreenCap', 'aScreenCap_nc')
|
||||
# No nc loopback
|
||||
if device in ['plone_cloud_with_adb', 'android_phone', 'android_phone_12']:
|
||||
screenshot.remove('ADB_nc')
|
||||
screenshot.remove('aScreenCap_nc')
|
||||
if device in ['plone_cloud_with_adb']:
|
||||
remove('ADB_nc', 'aScreenCap_nc')
|
||||
# VMOS
|
||||
if device == 'android_phone_vmos':
|
||||
screenshot = ['ADB', 'aScreenCap', 'DroidCast', 'DroidCast_raw']
|
||||
|
||||
Reference in New Issue
Block a user