From 64b850a2346164eb8a5670e2ebac6e4810f0381d Mon Sep 17 00:00:00 2001 From: Joel Stemmer Date: Fri, 9 Mar 2012 17:00:14 +0100 Subject: [PATCH] Remove parsing additional test output --- parser.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/parser.go b/parser.go index 03f5d3e..85811df 100644 --- a/parser.go +++ b/parser.go @@ -74,7 +74,7 @@ func Parse(r io.Reader) (*Report, error) { tests = make([]Test, 0) } } else { - // expecting test output or test status + // expecting test status if matches := regexStatus.FindStringSubmatch(line); len(matches) == 4 { if matches[1] == "PASS" { test.Result = PASS @@ -87,12 +87,6 @@ func Parse(r io.Reader) (*Report, error) { tests = append(tests, *test) test = nil - } else { - if len(test.Output) > 0 { - test.Output += "\n" + line - } else { - test.Output = line - } } } }