def tearDown(self): # Clean up filespaces to be tidy. Although we want to preserve # it for the investigation in case of test failure, without cleaning # it up it will prevent next tests from running correctly. walrepl.cleanupFilespaces(dbname=self.db_name) # remove standby cmd = Command('gpinitstandby', 'gpinitstandby -ar') cmd.run()
def tearDown(self): # stop standby, but not delete directory, as sometimes it is # useful to see what's going wrong. self.standby.stop() # Clean up filespaces to be tidy. Although we want to preserve # it for the investigation in case of test failure, without cleaning # it up it will prevent next tests from running correctly. if 'cleanup_filespace' in self._metadata: walrepl.cleanupFilespaces(dbname=self.db_name)
def tearDown(self): """ Override """ try: dburl = dbconn.DbURL() self.standby.remove_catalog_standby(dburl) except Exception: pass cleanupFilespaces(dbname=self.db_name)
def tearDown(self): walrepl.cleanupFilespaces(dbname=os.environ.get('PGDATABASE'))
def tearDown(self): walrepl.cleanupFilespaces(dbname=os.environ.get('PGDATABASE')) super(WalReplKillProcessScenarioTestCase, self).tearDown()
def tearDown(self): # Cleanup Filespaces walrepl.cleanupFilespaces(dbname=self.db_name)