Fix bugs for apps that do not have AOT metadata when running the --tac-regen-all...
author최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Mon, 10 Jul 2023 00:55:24 +0000 (09:55 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 10 Jul 2023 00:55:24 +0000 (09:55 +0900)
NativeLauncher/tool/tac_installer.cc
tests/TCs/6_TOOL/TOOL.py

index f512400..820ef5a 100644 (file)
@@ -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());
index 46b8e20..7f21487 100755 (executable)
@@ -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():