From 277b1ac3f5112abeab8750806b689ee893494406 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Fri, 23 Feb 2024 12:12:42 -0800 Subject: [PATCH] test name flag --- e2etests/report/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e2etests/report/main.go b/e2etests/report/main.go index 481cc9fd1..50aa97b40 100644 --- a/e2etests/report/main.go +++ b/e2etests/report/main.go @@ -37,9 +37,11 @@ func main() { vFlag := false testCaseFlag := "" testSetFlag := "" + testNameFlag := "" cpuProfileFlag := false memProfileFlag := false flag.BoolVar(&deltaFlag, "delta", false, "Generate the report only for cases that changed.") + flag.StringVar(&testNameFlag, "test-name", "E2E", "Name of e2e tests. Defaults to E2E") flag.StringVar(&testSetFlag, "test-set", "", "Only run set of tests matching this string. e.g. regressions") flag.StringVar(&testCaseFlag, "test-case", "", "Only run tests matching this string. e.g. all_shapes") flag.BoolVar(&cpuProfileFlag, "cpuprofile", false, "Profile test cpu usage. `go tool pprof out/cpu.prof`") @@ -52,7 +54,7 @@ func main() { if vFlag { vString = "-v" } - testMatchString := fmt.Sprintf("-run=TestE2E/%s/%s", testSetFlag, testCaseFlag) + testMatchString := fmt.Sprintf("-run=Test%s/%s/%s", testNameFlag, testSetFlag, testCaseFlag) cpuProfileStr := "" if cpuProfileFlag {