Skip to content

Commit

Permalink
add index to each test output
Browse files Browse the repository at this point in the history
  • Loading branch information
Styren committed Dec 12, 2022
1 parent 1827d3c commit bf46996
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/testing/test_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type TestJob struct {

type TestResult struct {
Name string `json:"name"`
Index int `json:"index"`
Image string `json:"image"`
Commands []string `json:"commands"`
State TestState `json:"state"`
Expand Down Expand Up @@ -80,6 +81,7 @@ func (t *TestRunner) Run(testOutputDir string) error {
deletePods = append(deletePods, podName)
job.result = &TestResult{
Name: fmt.Sprintf("test-%d", i),
Index: i,
Image: job.Image,
Commands: job.Commands,
State: TEST_STATE_PENDING,
Expand Down

0 comments on commit bf46996

Please sign in to comment.