steps/runconfig: Attempt a different way to terminate the build

It seems the previous approach was confusing buildbot about the task status
so try and be more specific and use better APIs to avoid this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2020-11-23 14:48:42 +00:00
parent c8db821860
commit 863ed82b2a

View File

@ -210,8 +210,8 @@ class TargetPresent(shell.ShellCommand):
# If the command fails, fall back to old style run-config execution
rc = super().evaluateCommand(cmd)
if rc != SUCCESS:
self.finished(SKIPPED)
self.build.results = SKIPPED
self.descriptionDone = "Target not present in branch configuration"
self.build.buildFinished(["Target not present in branch configuration"], SKIPPED)
# Run no further steps, terminate the build
self.build.terminate = True
return SKIPPED
return SUCCESS