Skip to content

Commit e2397aa

Browse files
Adam0Briendustymabe
authored andcommitted
mantle/kola: run individual test without bucketing
1 parent a2e5edb commit e2397aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mantle/kola/harness.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,11 @@ func runProvidedTests(testsBank map[string]*register.Test, patterns []string, mu
722722
}
723723
}
724724

725-
if len(nonExclusiveTests) > 0 {
725+
if len(nonExclusiveTests) == 1 {
726+
// If there is only one test then it can just be run by itself
727+
// so add it back to the tests map.
728+
tests[nonExclusiveTests[0].Name] = nonExclusiveTests[0]
729+
} else if len(nonExclusiveTests) > 0 {
726730
buckets := createTestBuckets(nonExclusiveTests)
727731
numBuckets := len(buckets)
728732
for i := 0; i < numBuckets; {

0 commit comments

Comments
 (0)