diff --git a/hack/verify-rollouts-e2e-tests/main.go b/hack/verify-rollouts-e2e-tests/main.go index 67ddea1..95162b9 100644 --- a/hack/verify-rollouts-e2e-tests/main.go +++ b/hack/verify-rollouts-e2e-tests/main.go @@ -132,6 +132,8 @@ func parseTestResultsFromFile(fileContents []string, testsExpectedToFailList []s testSlashE2EText := "test/e2e" + fmt.Printf("line: [%s] %v %v %v \n", line, strings.HasPrefix(line, "==="), strings.Contains(line, "FAIL"), strings.Contains(line, testSlashE2EText)) + var testName string if strings.HasPrefix(line, "===") && strings.Contains(line, "FAIL") && strings.Contains(line, testSlashE2EText) { @@ -180,7 +182,7 @@ func parseTestResultsFromFile(fileContents []string, testsExpectedToFailList []s } if !atLeastOneFailSeen || !atLeastOnePassSeen { // sanity test: BOTH a pass and fail should have occurred in the log. - return nil, fmt.Errorf("there may be something wrong with the parser: we expect to see both at least one pass, and at least one fail, in the parsed output") + return nil, fmt.Errorf("there may be something wrong with the parser: we expect to see both at least one pass, and at least one fail, in the parsed output: %v %v", atLeastOneFailSeen, atLeastOnePassSeen) } return testResults, nil