From 0f8df69f6ba49a5a1e2bf1dd05c0a4a5b0f601ac Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Mon, 6 Jul 2026 14:53:06 +0800 Subject: [PATCH] fix: make benchmark available --- module/daemon/benchmark.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/module/daemon/benchmark.py b/module/daemon/benchmark.py index 5628005..575e591 100644 --- a/module/daemon/benchmark.py +++ b/module/daemon/benchmark.py @@ -169,10 +169,10 @@ class Benchmark(DaemonBase): return fastest_screenshot, fastest_click def get_test_methods(self) -> t.Tuple[t.Tuple[str], t.Tuple[str]]: - device = self.config.Benchmark_DeviceType - # device == 'emulator' + # device = self.config.Benchmark_DeviceType + device = 'emulator' screenshot = ['ADB', 'ADB_nc', 'uiautomator2', 'aScreenCap', 'aScreenCap_nc', 'DroidCast', 'DroidCast_raw'] - click = ['ADB', 'uiautomator2', 'minitouch'] + click = ['ADB', 'uiautomator2', 'minitouch', 'maatouch'] def remove(*args): return [l for l in screenshot if l not in args] @@ -194,7 +194,7 @@ class Benchmark(DaemonBase): if self.device.ldopengl_available(): screenshot.append('ldopengl') - scene = self.config.Benchmark_TestScene + scene = 'screenshot_click' if 'screenshot' not in scene: screenshot = [] if 'click' not in scene: @@ -210,8 +210,8 @@ class Benchmark(DaemonBase): logger.critical('Request human takeover') return - logger.attr('DeviceType', self.config.Benchmark_DeviceType) - logger.attr('TestScene', self.config.Benchmark_TestScene) + # logger.attr('DeviceType', self.config.Benchmark_DeviceType) + # logger.attr('TestScene', self.config.Benchmark_TestScene) screenshot, click = self.get_test_methods() self.benchmark(screenshot, click)