update regexStatus to support go 1.4

This commit is contained in:
Tachikoma 2014-12-22 20:37:59 +08:00
parent 11bc6d69ca
commit a3d66c44af

View File

@ -34,7 +34,7 @@ type Test struct {
}
var (
regexStatus = regexp.MustCompile(`^--- (PASS|FAIL|SKIP): (.+) \((\d+\.\d+) seconds\)$`)
regexStatus = regexp.MustCompile(`^--- (PASS|FAIL|SKIP): (.+) \((\d+\.\d+)(?: seconds|s)\)$`)
regexResult = regexp.MustCompile(`^(ok|FAIL)\s+(.+)\s(\d+\.\d+)s$`)
)