Update Unit TC for support crossgen2
authorWoongsuk Cho <ws77.cho@samsung.com>
Fri, 14 Jan 2022 05:14:35 +0000 (14:14 +0900)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Mon, 24 Jan 2022 02:06:32 +0000 (11:06 +0900)
tests/TCs/1_AOT/AOT.py
tests/TCs/6_TOOL/TOOL.py

index 6c1ff6d..f32488b 100755 (executable)
@@ -100,13 +100,13 @@ def TC_03():
     if root_path == "None":
         return f"FAIL : Get the root path for {pkg_id}"
 
-    if not exist(f"{root_path}/bin/.native_image"):
-        return "FAIL : The .native_image folder should exist"
+    if exist(f"{root_path}/bin/.native_image"):
+        return "FAIL : The .native_image folder should not exist"
 
     raw = cmd(f"shell find {root_path}/bin/ -name *.ni.dll")
     lines = [l for l in raw.splitlines()]
-    if len(lines) == 0:
-        return "FAIL : The .ni.dll files should exist"
+    if len(lines) != 0:
+        return "FAIL : The .ni.dll files should not exist"
 
     return "PASS"
 
index 5e8a61a..60b41f9 100755 (executable)
@@ -73,7 +73,7 @@ def TC_04():
 
     raw = cmd(f"shell dotnettool --ni-dll {RUNTIME_DIR}{SPC_DLL}")
     if (f"{SPC_DLL}" not in raw) or \
-       ("System.Private.CoreLib.dll generated successfully." not in raw):
+       ("System.Private.CoreLib.ni.dll generated successfully." not in raw):
         return f"FAIL : Create native image for {SPC_DLL}"
 
     if not exist(f"{RUNTIME_DIR}{SPC_DLL}.Backup"):