From 4edff3cdd0579434ebfd27242897ea706a2e3c53 Mon Sep 17 00:00:00 2001 From: RingKing <1300547600@qq.com> Date: Thu, 25 Jan 2024 08:15:12 +0000 Subject: [PATCH] generate hap test path Signed-off-by: RingKing <1300547600@qq.com> --- test.gni | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test.gni b/test.gni index 96a8805e92..21ec724551 100644 --- a/test.gni +++ b/test.gni @@ -456,6 +456,10 @@ template("ohos_js_test") { "$root_out_dir/tests/${invoker.test_type}/${invoker.module_out_path}" _module_list_file = "$root_out_dir/module_list_files/${invoker.module_out_path}/$target_name.mlf" + write_file("$_test_output_dir/${target_name}_path.txt", + get_label_info(":$target_name", "dir"), + "string") + _arguments += [ "--output_dir", rebase_path(_test_output_dir, root_build_dir), -- Gitee