Chore: [ALAS] Abstract platform condition

(cherry picked from commit 6064457620b202da7442884b45f9e21556df88b8)
This commit is contained in:
LmeSzinc 2024-07-12 00:52:13 +08:00
parent 3357500277
commit cda9d25f88

View File

@ -15,9 +15,8 @@ from module.base.decorator import Config, cached_property, del_cached_property,
from module.base.utils import SelectedGrids, ensure_time from module.base.utils import SelectedGrids, ensure_time
from module.device.connection_attr import ConnectionAttr from module.device.connection_attr import ConnectionAttr
from module.device.env import IS_LINUX, IS_MACINTOSH, IS_WINDOWS from module.device.env import IS_LINUX, IS_MACINTOSH, IS_WINDOWS
from module.device.method.utils import ( from module.device.method.utils import (PackageNotInstalled, RETRY_TRIES, get_serial_pair, handle_adb_error,
PackageNotInstalled, RETRY_TRIES, get_serial_pair, handle_adb_error, possible_reasons, random_port, recv_all, remove_shell_warning, retry_sleep)
possible_reasons, random_port, recv_all, remove_shell_warning, retry_sleep)
from module.exception import EmulatorNotRunningError, RequestHumanTakeover from module.exception import EmulatorNotRunningError, RequestHumanTakeover
from module.logger import logger from module.logger import logger