Skip to content

Commit

Permalink
fix: remove check
Browse files Browse the repository at this point in the history
  • Loading branch information
vsukhin committed Nov 6, 2023
1 parent 699d873 commit 9f0b87f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cmd/kubectl-testkube/commands/testsuites/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,10 @@ func DownloadArtifacts(id, dir, format string, masks []string, client apiclientv
ui.ExitOnError("getting test suite execution ", err)

for _, execution := range testSuiteExecution.ExecuteStepResults {
if execution.Step != nil {
for _, step := range execution.Execute {
if step.Execution != nil && step.Step != nil && step.Step.Test != "" {
if step.Execution.IsPassed() || step.Execution.IsFailed() {
tests.DownloadArtifacts(step.Execution.Id, filepath.Join(dir, step.Execution.Id), format, masks, client)
}
for _, step := range execution.Execute {
if step.Execution != nil && step.Step != nil && step.Step.Test != "" {
if step.Execution.IsPassed() || step.Execution.IsFailed() {
tests.DownloadArtifacts(step.Execution.Id, filepath.Join(dir, step.Execution.Id), format, masks, client)
}
}
}
Expand Down

0 comments on commit 9f0b87f

Please sign in to comment.