Skip to content

Commit

Permalink
Don't queue a target up for test if the target failed to build (#3315)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatskaari authored Dec 13, 2024
1 parent b180e22 commit d5925d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plz/plz.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ func Run(targets, preTargets []core.BuildLabel, state *core.BuildState, config *
return
}

if !task.Target.State().IsBuilt() {
state.TaskDone()
return
}

if state.NeedTests && task.Target.IsTest() && state.IsOriginalTarget(task.Target) {
state.QueueTestTarget(task.Target)
}
Expand Down

0 comments on commit d5925d4

Please sign in to comment.