From e20f95b5ee53ead41b523f9c166d02cd18a20f28 Mon Sep 17 00:00:00 2001 From: "j-h.choi" Date: Thu, 4 Jan 2024 10:29:48 +0900 Subject: [PATCH] [TC Fixed] Remove the TC for dotnet-nui-loader --- tests/TCs/3_PRELOAD/PRELOAD.py | 14 ++++++++------ tests/TCs/7_LAUNCH/LAUNCH.py | 11 ++++++----- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/tests/TCs/3_PRELOAD/PRELOAD.py b/tests/TCs/3_PRELOAD/PRELOAD.py index 350c5bd..9e84906 100755 --- a/tests/TCs/3_PRELOAD/PRELOAD.py +++ b/tests/TCs/3_PRELOAD/PRELOAD.py @@ -36,17 +36,19 @@ def TC_01(): if len([l for l in raw.splitlines()]) == 0: return "FAIL : The assembly of .preload file should be loaded in the candidate process" - for preload in lines: - if ("XSF" in preload) and (f"{FRAMEWORK_DIR}XSF." not in raw): - return "FAIL : The assembly of XSF.preload file should be loaded in the candidate process" +# for preload in lines: +# if ("XSF" in preload) and (f"{FRAMEWORK_DIR}XSF." not in raw): +# return "FAIL : The assembly of XSF.preload file should be loaded in the candidate process" if (f"{FRAMEWORK_DIR}Tizen.Runtime." not in raw) or \ (f"{FRAMEWORK_DIR}Tizen." not in raw) or \ - (f"{FRAMEWORK_DIR}ElmSharp." not in raw) or \ (f"{FRAMEWORK_DIR}Tizen.Applications.Common." not in raw) or \ (f"{FRAMEWORK_DIR}Tizen.Applications.UI." not in raw) or \ (f"{FRAMEWORK_DIR}Tizen.Log." not in raw) or \ - (f"{FRAMEWORK_DIR}Tizen.System.Information." not in raw): + (f"{FRAMEWORK_DIR}Tizen.System.Information." not in raw) or \ + (f"{FRAMEWORK_DIR}Tizen.System.SystemSettings." not in raw) or \ + (f"{FRAMEWORK_DIR}Tizen.NUI." not in raw) or \ + (f"{FRAMEWORK_DIR}Tizen.NUI.Components." not in raw): return "FAIL : The assembly of .preload file should be loaded in the candidate process" return "PASS" @@ -64,7 +66,7 @@ def TC_02(): pkg_id = f"org.tizen.example.Launcher_TC_PRELOAD_02" - raw = prepare_candidate_process(f"dotnet-nui-loader", f"{pkg_id}") + raw = prepare_candidate_process(f"dotnet-loader", f"{pkg_id}") if "OK" not in raw: return f"FAIL : Candidate process should have dotnet-nui-loader" diff --git a/tests/TCs/7_LAUNCH/LAUNCH.py b/tests/TCs/7_LAUNCH/LAUNCH.py index 8db4062..62354e4 100755 --- a/tests/TCs/7_LAUNCH/LAUNCH.py +++ b/tests/TCs/7_LAUNCH/LAUNCH.py @@ -126,11 +126,11 @@ def TC_04(): f2 = open("./dotnet.loader.origin", "r") for line in f2: - if line.startswith("EXE "): + if line.startswith("EXE"): f1.write(line.replace("EXE", "#EXE")) - elif line.startswith("#EXE "): + elif line.startswith("#EXE"): f1.write(line.replace("#EXE", "EXE")) - elif line.startswith("HYDRA "): + elif line.startswith("HYDRA"): f1.write(line.replace("OFF", "ON")) else: f1.write(line) @@ -153,7 +153,7 @@ def TC_04(): cmd(f"root on") cmd(f"shell mount -o remount,rw /") - if "OK" not in prepare_candidate_process(f"dotnet-loader", f"{pkg_id}"): + if "OK" not in prepare_candidate_process(f"dotnet-hydra-loader", f"{pkg_id}"): return f"FAIL : Candidate process should have dotnet-loader" raw = cmd(f"shell ps -ef | grep dotnet-hydra-loader") @@ -222,7 +222,8 @@ def main(): else: tc_array.append(funcMap[tc_num]) else: - tc_array = [TC_01, TC_02, TC_03, TC_04] + tc_array = [TC_01, TC_02, TC_04] + #skip TC_03(dotnet-nui-loader) global serial if len(sys.argv) >= 2 and "TC_" not in sys.argv[1]: -- 2.7.4