修复querySmall.bin文件找不到的问题;设置user_config.xml的日志默认级别为DEBUG

Signed-off-by: deveco_xdevice <liguangjie1@huawei.com>
This commit is contained in:
deveco_xdevice 2024-11-05 10:57:58 +08:00
parent d6f87535dd
commit df9a47a5ee
2 changed files with 5 additions and 3 deletions

View File

@ -68,8 +68,8 @@
</resource>
<devicelog>
<enable>ON</enable>
<loglevel>DEBUG</loglevel>
<loglevel>INFO</loglevel>
<dir />
</devicelog>
<loglevel>DEBUG</loglevel>
<loglevel>INFO</loglevel>
</user_config>

View File

@ -299,9 +299,11 @@ class MountKit(ITestKit):
testcases_dir):
file_local_paths = []
# find querySmall.bin
query_small_src = "resource/tools/querySmall.bin"
try:
file_path = get_file_absolute_path("resource/tools/querySmall.bin", self.paths)
file_path = get_file_absolute_path(query_small_src, self.paths)
file_local_paths.append(file_path)
self.mount_list.append({"source": query_small_src, "target": "/test_root/tools"})
except ParamError:
LOG.debug("query bin is not found")