Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -469,14 +469,18 @@ public final class SwiftDriverJobTaskAction: TaskAction, BuildValueValidatingTas
}

func processFinished(result: CommandExtendedResult) {
guard let status = Processes.ExitStatus.init(rawValue: result.exitStatus) else {
// nil means the job is stopped or continued. It should not call finished.
return
}
// This may be updated by commandStarted in the case of certain failures,
// so only update the exit status in output delegate if it is nil.
if outputDelegate.result == nil {
outputDelegate.updateResult(TaskResult(result))
}
self._commandResult = result.result
do {
try plannedBuild?.jobFinished(job: driverJob, arguments: arguments, pid: pid.pid, environment: environment, exitStatus: .exit(result.exitStatus), output: output)
try plannedBuild?.jobFinished(job: driverJob, arguments: arguments, pid: pid.pid, environment: environment, exitStatus: status, output: output)
} catch {
executionError = error.localizedDescription
}
Expand Down
Loading