mirror of
https://gitee.com/openharmony/xts_tools
synced 2024-11-27 01:50:47 +00:00
!235 修改ohos_app模板无法识别final_hap_path
Merge pull request !235 from zhouhouyue/master
This commit is contained in:
commit
23e924d297
@ -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,9 +297,11 @@ template("ohos_testsuite_base") {
|
||||
outputs = [ _archive_testfile ]
|
||||
testonly = true
|
||||
}
|
||||
if (defined(_deps)) {
|
||||
print(_deps)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
template("ohos_moduletest_suite") {
|
||||
target("ohos_testsuite_base", "${target_name}") {
|
||||
|
Loading…
Reference in New Issue
Block a user