test-framework: Resolve IP for DUT configured in SSH config

Signed-off-by: Daniel Madej <daniel.madej@huawei.com>
This commit is contained in:
Daniel Madej
2023-08-01 11:46:12 +02:00
committed by Kamil Gierszewski
parent d2835c1059
commit be9286025d
4 changed files with 49 additions and 5 deletions

View File

@@ -171,6 +171,7 @@ def __setup(cls):
except Exception as ex:
raise Exception(f"Failed to setup DUT instance:\n"
f"{str(ex)}\n{traceback.format_exc()}")
cls.dut.ip = cls.dut.ip or cls.executor.resolve_ip_address()
cls.__setup_disks()
TestRun.LOGGER.info(f"Re-seeding random number generator with seed: {cls.random_seed}")