mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
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:
parent
ff1da7674d
commit
5155df0287
@ -91,7 +91,7 @@ type LogReporter struct{}
|
|||||||
func (lr *LogReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary) {
|
func (lr *LogReporter) SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary) {
|
||||||
b := &bytes.Buffer{}
|
b := &bytes.Buffer{}
|
||||||
b.WriteString("******************************************************\n")
|
b.WriteString("******************************************************\n")
|
||||||
glog.V(2).Infof(b.String())
|
glog.V(0).Infof(b.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (lr *LogReporter) BeforeSuiteDidRun(setupSummary *types.SetupSummary) {}
|
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(fmt.Sprintf("etcd output:\n%s\n", e2es.etcdCombinedOut.String()))
|
||||||
}
|
}
|
||||||
b.WriteString("******************************************************\n")
|
b.WriteString("******************************************************\n")
|
||||||
glog.V(2).Infof(b.String())
|
glog.V(0).Infof(b.String())
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ func main() {
|
|||||||
fmt.Printf("Initializing e2e tests using host %s.\n", host)
|
fmt.Printf("Initializing e2e tests using host %s.\n", host)
|
||||||
running++
|
running++
|
||||||
go func(host string) {
|
go func(host string) {
|
||||||
results <- testHost(host, archive)
|
results <- testHost(host, archive, *cleanup)
|
||||||
}(host)
|
}(host)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -150,8 +150,8 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Run tests in archive against host
|
// Run tests in archive against host
|
||||||
func testHost(host, archive string) *TestResult {
|
func testHost(host, archive string, deleteFiles bool) *TestResult {
|
||||||
output, err := e2e_node.RunRemote(archive, host, *cleanup)
|
output, err := e2e_node.RunRemote(archive, host, deleteFiles)
|
||||||
return &TestResult{
|
return &TestResult{
|
||||||
output: output,
|
output: output,
|
||||||
err: err,
|
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),
|
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
|
// Provision a gce instance using image
|
||||||
|
Loading…
Reference in New Issue
Block a user