Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions internal/execution/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,11 @@ func (e *Scheduler) Run(globalCtx, runCtx context.Context, samplesOut chan<- met
e.initProgress.Modify(pb.WithConstProgress(1, "Starting test..."))
e.state.MarkStarted()
defer func() {
if e.state.Test.TestStatus != nil && e.state.Test.TestStatus.Failed() {
e.state.SetExecutionStatus(lib.ExecutionStatusMarkedAsFailed)
return
}

isAborted := GetCancelReasonIfTestAborted(runCtx) != nil
if !isAborted {
e.state.MarkEnded()
Expand Down
1 change: 1 addition & 0 deletions lib/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const (
ExecutionStatusTeardown
ExecutionStatusEnded
ExecutionStatusInterrupted
ExecutionStatusMarkedAsFailed
)

// ExecutionState contains a few different things:
Expand Down
29 changes: 15 additions & 14 deletions lib/execution_status_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading