mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #24339 from pwittrock/flaky
Automatic merge from submit-queue Don't clean up files on image-based tests since the instance will be … …deleted anyway and this is flaky on CoreOS.
This commit is contained in:
commit
c528080248
@ -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())
|
||||
}
|
||||
|
@ -155,7 +155,7 @@ func (es *e2eService) startServer(cmd *healthCheckCommand) error {
|
||||
go func() {
|
||||
err := cmd.Run()
|
||||
if err != nil {
|
||||
cmdErrorChan <- fmt.Errorf("%s Exited with status %v. Output:\n%v", cmd, err, *cmd.OutputBuffer)
|
||||
cmdErrorChan <- fmt.Errorf("%s Failed with error \"%v\". Command output:\n%s", cmd, err, *cmd.OutputBuffer)
|
||||
}
|
||||
close(cmdErrorChan)
|
||||
}()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user