add err handling in gce/gci

This commit is contained in:
hwdef 2019-09-14 18:27:40 +08:00
parent 07e58a361b
commit e581be1ec7

View File

@ -148,7 +148,9 @@ func (c *ManifestTestCase) mustLoadPodFromManifest() {
}
func (c *ManifestTestCase) tearDown() {
os.RemoveAll(c.kubeHome)
if err := os.RemoveAll(c.kubeHome); err != nil {
c.t.Fatalf("Failed to teardown: %s", err)
}
}
func copyFile(src, dst string) (err error) {