Signed-off-by:lizhengrong<lizhengrong9@huawei.com>

This commit is contained in:
lizhengrong 2024-05-07 21:23:39 +08:00
parent 58428751af
commit 2ade7de7b0
2 changed files with 3 additions and 2 deletions

View File

@ -872,7 +872,7 @@ subsystem # 子系统
```
<option name="shell" value="hilog -d /设备中的二进制文件路径"/>
// 例如
<option name="shell" value="hilog -d /data/test/resource/libc++.z.so"/>
<option name="shell" value="hilog -d /data/test/resource/test.z.so"/>
```
3. 在测试用例的编译配置文件中定义resource_config_file进行指引用来指定对应的资源文件ohos_test.xml
```

View File

@ -118,7 +118,8 @@ def find_so_source_dest(path: str, subsystem_name: str) -> dict:
source_path = os.path.join(out_path, json_obj["source"])
if source_path.endswith(".so"):
so_dict[source_path] = [tmp for tmp in json_obj["dest"] if (tmp.startswith("system/") or tmp.startswith("vendor/"))]
so_dict[source_path] = [tmp for tmp in json_obj["dest"] if (
tmp.startswith("system/") or tmp.startswith("vendor/"))]
return so_dict