mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 08:32:45 +00:00
tests: report uname info once per test
Report 'uname' info once per test, not once per configured router in each test. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
61196140a6
commit
45c3045aef
@ -702,14 +702,16 @@ def start_topology(tgen, daemon=None):
|
||||
)
|
||||
TMPDIR = os.path.join(LOGDIR, tgen.modname)
|
||||
|
||||
linux_ver = ''
|
||||
router_list = tgen.routers()
|
||||
for rname in ROUTER_LIST:
|
||||
router = router_list[rname]
|
||||
|
||||
# It will help in debugging the failures, will give more details on which
|
||||
# specific kernel version tests are failing
|
||||
linux_ver = router.run("uname -a")
|
||||
logger.info("Logging platform related details: \n %s \n", linux_ver)
|
||||
if linux_ver == '':
|
||||
linux_ver = router.run("uname -a")
|
||||
logger.info("Logging platform related details: \n %s \n", linux_ver)
|
||||
|
||||
try:
|
||||
os.chdir(TMPDIR)
|
||||
|
Loading…
Reference in New Issue
Block a user