def main(configs): """ starting point """ options = Options( ) # command line arguments which are usually passed to `bzt` # hard defaults below options.log = None options.option = None options.quiet = None options.verbose = None options.no_system_configs = None options.aliases = [] # configs = [] # list which contains bzt config files executor = CLI(options) try: code = executor.perform(configs) except BaseException as exc_top: logging.error("%s: %s", type(exc_top).__name__, exc_top) logging.debug("Exception: %s", traceback.format_exc()) code = 1 exit(code)
def setUp(self): super(TestCLI, self).setUp() self.log = os.path.dirname(__file__) + "/../build/bzt.log" self.verbose = True self.option = [] self.datadir = os.path.dirname(__file__) + "/../build/acli" self.obj = CLI(self) self.aliases = [] self.obj.engine = EngineEmul()
def setUp(self): super(TestCLI, self).setUp() self.log = os.path.join(os.path.dirname(__file__), "..", "build", "bzt.log") self.verbose = True self.no_system_configs = True self.option = [] self.datadir = os.path.join(os.path.dirname(__file__), "..", "build", "acli") self.obj = CLI(self) self.aliases = [] self.obj.engine = EngineEmul()
def setUp(self): super(TestCLI, self).setUp() self.logger = self.log self.log = os.path.join(BUILD_DIR, "bzt.log") self.verbose = False self.quiet = False self.no_system_configs = True self.option = [] self.obj = CLI(self) self.assertTrue(os.path.exists(self.log)) self.aliases = [] self.obj.engine = EngineEmul()