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"
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"):