!18 xts_tools suite_lite.gni modify 2

Merge pull request !18 from jiyong/myfeature
This commit is contained in:
openharmony_ci 2021-03-17 10:36:36 +08:00 committed by Gitee
commit 61f51b4f96

View File

@ -214,6 +214,18 @@ template("test_suite") {
if (defined(invoker.prebuilts_files)) {
_prebuilts_files = invoker.prebuilts_files
}
if (defined(invoker.version)) {
_version = invoker.version
_out_dir = rebase_path("${_suite_path}/testcases")
_args1 = [
"--method_name",
"record_test_component_info",
"--arguments",
"out_dir=${_out_dir}#version=${_version}",
]
exec_script(rebase_path("$BUILD_DIR_PREFIX/utils.py"), _args1)
}
_gen_args = [
"archive_suite",
"--suite_path",
@ -236,18 +248,6 @@ template("test_suite") {
args = _gen_args
outputs = [ _output ]
}
if (defined(invoker.version)) {
_version = invoker.version
_out_dir = rebase_path("${_suite_path}/testcases")
_args1 = [
"--method_name",
"record_test_component_info",
"--arguments",
"out_dir=${_out_dir}#version=${_version}",
]
exec_script(rebase_path("$BUILD_DIR_PREFIX/utils.py"), _args1)
}
}
template("executable_suite") {