Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
test-cases: Treat SKIPped tests as ok
Browse files Browse the repository at this point in the history
This change modifies test-cases so it treats skipped tests as
'ok'.  This is needed to ensure that our release builds pass.  Currently,
some of the BAT tests are skipped due to missing functionality.

Fixes #1145

Signed-off-by: Mark Ryan <[email protected]>
  • Loading branch information
Mark Ryan committed Feb 14, 2017
1 parent 16c02e1 commit cce530c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-cases/test-cases.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ func generateTAPOutput(tests []*PackageTests) {
pkgName := p.Name[len(prefix):]
fmt.Printf("# Tests for %s\n", pkgName)
for _, t := range p.Tests {
if t.Result == "PASS" {
if t.Result == "PASS" || t.Result == "SKIP" {
fmt.Printf("ok ")
} else {
fmt.Printf("not ok ")
Expand Down

0 comments on commit cce530c

Please sign in to comment.