func (s *localServerSuite) TearDownTest(c *C) { if s.env != nil { openstack.RemoveTestImageData(s.env) } if s.writeablePublicStorage != nil { envtesting.RemoveFakeTools(c, s.writeablePublicStorage) } s.Tests.TearDownTest(c) s.srv.stop() s.LoggingSuite.TearDownTest(c) }
func (t *LiveTests) TearDownSuite(c *C) { if t.Env == nil { // This can happen if SetUpSuite fails. return } if t.writeablePublicStorage != nil { envtesting.RemoveFakeTools(c, t.writeablePublicStorage) } openstack.SetFakeToolsStorage(false) t.LiveTests.TearDownSuite(c) t.LoggingSuite.TearDownSuite(c) }