mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 03:08:15 +08:00
Fix: ValueError in get_test_methods()
This commit is contained in:
parent
c705742a74
commit
0021e0c5b6
@ -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']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user