Skip to content

Commit 5117d2b

Browse files
authored
Merge pull request #1844 from alixander/test-name-flag
add test name flag to test report
2 parents 39fd268 + 277b1ac commit 5117d2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

e2etests/report/main.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ func main() {
3737
vFlag := false
3838
testCaseFlag := ""
3939
testSetFlag := ""
40+
testNameFlag := ""
4041
cpuProfileFlag := false
4142
memProfileFlag := false
4243
flag.BoolVar(&deltaFlag, "delta", false, "Generate the report only for cases that changed.")
44+
flag.StringVar(&testNameFlag, "test-name", "E2E", "Name of e2e tests. Defaults to E2E")
4345
flag.StringVar(&testSetFlag, "test-set", "", "Only run set of tests matching this string. e.g. regressions")
4446
flag.StringVar(&testCaseFlag, "test-case", "", "Only run tests matching this string. e.g. all_shapes")
4547
flag.BoolVar(&cpuProfileFlag, "cpuprofile", false, "Profile test cpu usage. `go tool pprof out/cpu.prof`")
@@ -52,7 +54,7 @@ func main() {
5254
if vFlag {
5355
vString = "-v"
5456
}
55-
testMatchString := fmt.Sprintf("-run=TestE2E/%s/%s", testSetFlag, testCaseFlag)
57+
testMatchString := fmt.Sprintf("-run=Test%s/%s/%s", testNameFlag, testSetFlag, testCaseFlag)
5658

5759
cpuProfileStr := ""
5860
if cpuProfileFlag {

0 commit comments

Comments
 (0)