Allow integration tests to be skipped

pull/2092/head
Philip O'Toole 2015-03-27 11:28:19 -07:00
parent 8fe4e428a7
commit 3e59dac0fb
1 changed files with 5 additions and 0 deletions

View File

@ -351,6 +351,7 @@ func runTestsData(t *testing.T, testName string, nodes Cluster, database, retent
// The tests. Within these tests %DB% and %RP% will be replaced with the database and retention passed into
// this function.
tests := []struct {
skip bool // Skip the test.
reset bool // Delete and recreate the database.
name string // Test name, for easy-to-read test log output.
write string // If equal to the empty string, no data is written.
@ -1110,6 +1111,10 @@ func runTestsData(t *testing.T, testName string, nodes Cluster, database, retent
continue
}
if tt.skip {
t.Logf("SKIPPING TEST %s", tt.name)
}
fmt.Printf("TEST: %d: %s\n", i, name)
t.Logf("Running test %d: %s", i, name)