[TC Fixed] Remove the TC for dotnet-nui-loader
authorj-h.choi <j-h.choi@samsung.com>
Thu, 4 Jan 2024 01:29:48 +0000 (10:29 +0900)
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Mon, 5 Feb 2024 05:09:38 +0000 (14:09 +0900)
tests/TCs/3_PRELOAD/PRELOAD.py
tests/TCs/7_LAUNCH/LAUNCH.py

index 350c5bd..9e84906 100755 (executable)
@@ -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"
 
index 8db4062..62354e4 100755 (executable)
@@ -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]: