fixed a bug with antminers not reporting type because of fans in testbench, and added a long running get data for long tests

This commit is contained in:
UpstreamData
2022-05-27 11:53:19 -06:00
parent 69820dd9d2
commit f847700c05
2 changed files with 7 additions and 0 deletions

View File

@@ -149,6 +149,7 @@ class TestbenchMiner:
elif isinstance(miner, UnknownMiner):
await self.add_to_output("Unknown Miner found, attempting to fix.")
try:
await self.do_install()
async with (
await miner._get_ssh_connection() # noqa - Ignore access to _function
) as conn:
@@ -442,6 +443,11 @@ class TestbenchMiner:
await self.add_to_output("Miner disconnected, waiting for new miner.")
self.start_time = None
async def long_test_loop(self):
while True:
self.state = DONE
await self.install_done()
async def install_loop(self):
self.latest_version = sorted(await get_local_versions(), reverse=True)[0]
while True:

View File

@@ -80,6 +80,7 @@ async def install():
for host in miner_network.hosts():
miner = TestbenchMiner(host)
asyncio.create_task(miner.install_loop())
# asyncio.create_task(miner.long_test_loop())
if __name__ == "__main__":