Don't clean up files on image-based tests since the instance will be deleted anyway and this is flaky on CoreOS. Fixed #24297

This commit is contained in:
Phillip Wittrock 2016-04-15 10:27:45 -07:00
parent ff1da7674d
commit 5155df0287
2 changed files with 6 additions and 6 deletions

View File

@ -91,7 +91,7 @@ type LogReporter struct{}
func (lr *LogReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary) {
b := &bytes.Buffer{}
b.WriteString("******************************************************\n")
glog.V(2).Infof(b.String())
glog.V(0).Infof(b.String())
}
func (lr *LogReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary) {}
@ -115,5 +115,5 @@ func (lr *LogReporter) SpecSuiteDidEnd(summary *types.SuiteSummary) {
b.WriteString(fmt.Sprintf("etcd output:\n%s\n", e2es.etcdCombinedOut.String()))
}
b.WriteString("******************************************************\n")
glog.V(2).Infof(b.String())
glog.V(0).Infof(b.String())
}

View File

@ -122,7 +122,7 @@ func main() {
fmt.Printf("Initializing e2e tests using host %s.\n", host)
running++
go func(host string) {
results <- testHost(host, archive)
results <- testHost(host, archive, *cleanup)
}(host)
}
}
@ -150,8 +150,8 @@ func main() {
}
// Run tests in archive against host
func testHost(host, archive string) *TestResult {
output, err := e2e_node.RunRemote(archive, host, *cleanup)
func testHost(host, archive string, deleteFiles bool) *TestResult {
output, err := e2e_node.RunRemote(archive, host, deleteFiles)
return &TestResult{
output: output,
err: err,
@ -171,7 +171,7 @@ func testImage(image, archive string) *TestResult {
err: fmt.Errorf("Unable to create gce instance with running docker daemon for image %s. %v", image, err),
}
}
return testHost(host, archive)
return testHost(host, archive, false)
}
// Provision a gce instance using image