Skip to content

Commit

Permalink
mantle/kola: run individual test without bucketing
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam0Brien authored and dustymabe committed Jun 12, 2023
1 parent a2e5edb commit e2397aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mantle/kola/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,11 @@ func runProvidedTests(testsBank map[string]*register.Test, patterns []string, mu
}
}

if len(nonExclusiveTests) > 0 {
if len(nonExclusiveTests) == 1 {
// If there is only one test then it can just be run by itself
// so add it back to the tests map.
tests[nonExclusiveTests[0].Name] = nonExclusiveTests[0]
} else if len(nonExclusiveTests) > 0 {
buckets := createTestBuckets(nonExclusiveTests)
numBuckets := len(buckets)
for i := 0; i < numBuckets; {
Expand Down

0 comments on commit e2397aa

Please sign in to comment.