本文整理汇总了Python中TestHelper.TestHelper.printSystemInfo方法的典型用法代码示例。如果您正苦于以下问题:Python TestHelper.printSystemInfo方法的具体用法?Python TestHelper.printSystemInfo怎么用?Python TestHelper.printSystemInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestHelper.TestHelper
的用法示例。
在下文中一共展示了TestHelper.printSystemInfo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: except
# 需要导入模块: from TestHelper import TestHelper [as 别名]
# 或者: from TestHelper.TestHelper import printSystemInfo [as 别名]
output["stdout"] = outs.decode("utf-8")
output["stderr"] = errs.decode("utf-8")
output["returncode"] = proc.returncode
except (subprocess.TimeoutExpired) as _:
Print("ERROR: Nodeos is running beyond the defined wait time. Hard killing nodeos instance.")
proc.send_signal(signal.SIGKILL)
return (False, None)
if debug: Print("Returning success.")
return (True, output)
random.seed(seed) # Use a fixed seed for repeatability.
cluster=Cluster(walletd=True)
try:
TestHelper.printSystemInfo("BEGIN")
cluster.setChainStrategy(chainSyncStrategyStr)
cluster.killall(allInstances=killAll)
cluster.cleanup()
Print ("producing nodes: %d, topology: %s, delay between nodes launch(seconds): %d, chain sync strategy: %s" % (
pnodes, topo, delay, chainSyncStrategyStr))
Print("Stand up cluster")
if cluster.launch(pnodes, total_nodes, topo=topo, delay=delay, dontBootstrap=True) is False:
errorExit("Failed to stand up eos cluster.")
node=cluster.getNode(0)
if node is None: