mirror of
https://gitee.com/openharmony/testfwk_xdevice
synced 2024-11-26 17:12:22 +00:00
优化L1 querySmall.bin的运行逻辑
Signed-off-by: deveco_xdevice <liguangjie1@huawei.com>
This commit is contained in:
parent
153e66cb2a
commit
9d6664ecae
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user