!235 修改ohos_app模板无法识别final_hap_path

Merge pull request !235 from zhouhouyue/master
This commit is contained in:
openharmony_ci 2023-05-22 08:03:46 +00:00 committed by Gitee
commit 23e924d297
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -155,7 +155,7 @@ template("ohos_testsuite_base") {
target("ohos_app", _target_name) {
forward_variables_from(invoker, "*")
subsystem_name = XTS_SUITENAME
final_hap_path = "${SUITES_OUTPUT_ROOT}/haps"
hap_out_dir = "${SUITES_OUTPUT_ROOT}/haps"
testonly = true
}
} else {
@ -183,6 +183,9 @@ template("ohos_testsuite_base") {
if (defined(invoker.testonly)) {
not_needed(invoker, [ "testonly" ])
}
if (defined(invoker.js_build_mode)) {
not_needed(invoker, [ "js_build_mode" ])
}
}
} else if (_project_type == "pythontest") {
if (defined(invoker.outputs_dir)) {
@ -294,7 +297,9 @@ template("ohos_testsuite_base") {
outputs = [ _archive_testfile ]
testonly = true
}
print(_deps)
if (defined(_deps)) {
print(_deps)
}
}
}