From 5e91256049a851f8b5c91cbdda06fb8e426e2587 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=B5=9C=EC=A2=85=ED=97=8C/MDE=20Lab=28SR=29/=EC=82=BC?= =?utf8?q?=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 10 Jul 2023 09:55:24 +0900 Subject: [PATCH] Fix bugs for apps that do not have AOT metadata when running the --tac-regen-all option (#466) --- NativeLauncher/tool/tac_installer.cc | 2 +- tests/TCs/6_TOOL/TOOL.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NativeLauncher/tool/tac_installer.cc b/NativeLauncher/tool/tac_installer.cc index f512400..820ef5a 100644 --- a/NativeLauncher/tool/tac_installer.cc +++ b/NativeLauncher/tool/tac_installer.cc @@ -131,7 +131,7 @@ static bool copyAssemblyCreateSymlink(std::string binPath, std::string tacDir, s nuget_restoration = true; break; } - if (exist(concatPath(tac_version_dir, niFile))) { + if (exist(concatPath(tac_version_dir, niFile)) && exist(binNiPath)) { bf::create_symlink(concatPath(tac_version_dir, niFile), concatPath(tacDir, niFile), error); if (error) { _ERR("Failed to create symlink %s file", concatPath(tacDir, niFile).c_str()); diff --git a/tests/TCs/6_TOOL/TOOL.py b/tests/TCs/6_TOOL/TOOL.py index 46b8e20..7f21487 100755 --- a/tests/TCs/6_TOOL/TOOL.py +++ b/tests/TCs/6_TOOL/TOOL.py @@ -683,6 +683,8 @@ def clean(): cmd(f"shell rm -rf {DOTNET_DIR}apps/org.tizen.example.Launcher_TC_TOOL_08.Tizen") cmd(f"shell rm -rf {DOTNET_DIR}apps/org.tizen.example.Launcher_TC_TOOL_09.Tizen") + cmd(f"shell tpk-backend --force-remove --preload -d org.tizen.example.Launcher_TC_TOOL_08.Tizen") + cmd(f"shell tpk-backend --force-remove --preload -d org.tizen.example.Launcher_TC_TOOL_09.Tizen") # Main entry point def main(): -- 2.7.4