From bf31b7ba2b31b3efb19ae148a1e2433827aaa36e Mon Sep 17 00:00:00 2001 From: Woongsuk Cho Date: Fri, 14 Jan 2022 14:14:35 +0900 Subject: [PATCH] Update Unit TC for support crossgen2 --- tests/TCs/1_AOT/AOT.py | 8 ++++---- tests/TCs/6_TOOL/TOOL.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/TCs/1_AOT/AOT.py b/tests/TCs/1_AOT/AOT.py index 6c1ff6d..f32488b 100755 --- a/tests/TCs/1_AOT/AOT.py +++ b/tests/TCs/1_AOT/AOT.py @@ -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" diff --git a/tests/TCs/6_TOOL/TOOL.py b/tests/TCs/6_TOOL/TOOL.py index 5e8a61a..60b41f9 100755 --- a/tests/TCs/6_TOOL/TOOL.py +++ b/tests/TCs/6_TOOL/TOOL.py @@ -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"): -- 2.7.4