self.run_scenario(name) return False return True def run_scenario(self, name): if name == 'None': print("Asked to run no scenario. Quitting ...") return self.running_scenarios.append(name) scenario = importlib.import_module("scenarios.{}.run".format(name)) scenario.run(self) self.running_scenarios.pop() self.ran_scenarios.append(name) def run_test(self, args): if not self.geth: print("Error: No valid geth binary provided/found") sys.exit(1) # All scenarios would need to have the contracts compiled self.compile_contracts(args.keep_limits) self.run_scenario(self.args.scenario) if __name__ == "__main__": currentdir = os.path.dirname( os.path.abspath(inspect.getfile(inspect.currentframe()))) os.sys.path.insert(0, currentdir) args = test_args() ctx = TestContext(args) ctx.run_test(args)
self.run_scenario(name) return False return True def run_scenario(self, name): if name == 'None': print("Asked to run no scenario. Quitting ...") return self.running_scenarios.append(name) scenario = importlib.import_module("scenarios.{}.run".format(name)) scenario.run(self) self.running_scenarios.pop() self.ran_scenarios.append(name) def run_test(self, args): if not self.geth: print("Error: No valid geth binary provided/found") sys.exit(1) # All scenarios would need to have the contracts compiled self.compile_contracts(args.keep_limits) self.run_scenario(self.args.scenario) if __name__ == "__main__": currentdir = os.path.dirname( os.path.abspath(inspect.getfile(inspect.currentframe())) ) os.sys.path.insert(0, currentdir) args = test_args() ctx = TestContext(args) ctx.run_test(args)