Skip to content

Commit 950b3c1

Browse files
committed
.pytool/HostUnitTestCompilerPlugin: Return failure if dsc path is not valid
The HostUnitTestCompilerPlugin currently skips the package if the dsc path described in .ci.yaml is not valid. This change returns failure if dsc path is not valid. Signed-off-by: Cosmo Lai <[email protected]>
1 parent 6c6d4d2 commit 950b3c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pytool/Plugin/HostUnitTestCompilerPlugin/HostUnitTestCompilerPlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def RunBuildPlugin(self, packagename, Edk2pathObj, pkgconfig, environment, PLM,
9898
if AP is None or AP_Path is None or not os.path.isfile(APDSC):
9999
tc.SetSkipped()
100100
tc.LogStdError("Package HostBasedUnitTest Dsc not found.")
101-
return -1
101+
return 1
102102

103103
logging.info("Building {0}".format(AP_Path))
104104
self._env.SetValue("ACTIVE_PLATFORM", AP_Path, "Set in Compiler Plugin")

0 commit comments

Comments
 (0)