def setUpClass(cls): log = logging.getLogger("BaseTest") log.info("Starting test setup") (cls.gpio, cls.system) = System.build_from_config(config) cls.system.power_off_obc() cls.system.start() boot_wrappers = cls._get_class_boot_wrappers() cls.system.restart(boot_wrappers) log.info("Test setup finished")
def setUp(self): log = logging.getLogger("BaseTest") log.info("Starting test setup") extensions.set_up(test_id=self.id()) (self.gpio, self.system) = System.build_from_config(config) boot_wrappers = self._get_boot_wrappers(self._testMethodName) self.system.power_off_obc() self.system.start() if self.auto_power_on: self.system.restart(boot_wrappers) log.info("Test setup finished")