优化L1 querySmall.bin的运行逻辑

Signed-off-by: deveco_xdevice <liguangjie1@huawei.com>
This commit is contained in:
deveco_xdevice 2024-11-12 17:43:31 +08:00
parent 153e66cb2a
commit 9d6664ecae

View File

@ -59,6 +59,9 @@ def execute_query(device, query):
if not query:
LOG.debug("query bin is none")
return
if device.device_props:
LOG.debug("query bin has been executed")
return
LOG.debug("execute query bin begins")
if device.__get_device_kernel__() == DeviceLiteKernel.linux_kernel:
command = f"chmod +x /storage{query} && /storage{query}"
@ -237,6 +240,9 @@ class MountKit(ITestKit):
if target in self.mounted_dir:
LOG.debug("%s is mounted" % target)
continue
if target == "/test_root/tools" and device.device_props:
LOG.debug("query bin has been executed, '/test_root/tools' no need to mount again")
continue
mkdir_on_board(device, target)
self.mounted_dir.add(target)