mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-17 21:38:11 +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)
|
TMPDIR = os.path.join(LOGDIR, tgen.modname)
|
||||||
|
|
||||||
|
linux_ver = ''
|
||||||
router_list = tgen.routers()
|
router_list = tgen.routers()
|
||||||
for rname in ROUTER_LIST:
|
for rname in ROUTER_LIST:
|
||||||
router = router_list[rname]
|
router = router_list[rname]
|
||||||
|
|
||||||
# It will help in debugging the failures, will give more details on which
|
# It will help in debugging the failures, will give more details on which
|
||||||
# specific kernel version tests are failing
|
# specific kernel version tests are failing
|
||||||
linux_ver = router.run("uname -a")
|
if linux_ver == '':
|
||||||
logger.info("Logging platform related details: \n %s \n", linux_ver)
|
linux_ver = router.run("uname -a")
|
||||||
|
logger.info("Logging platform related details: \n %s \n", linux_ver)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.chdir(TMPDIR)
|
os.chdir(TMPDIR)
|
||||||
|
Loading…
Reference in New Issue
Block a user