tests: change topotest log timestamp precision to 6.

- Often millisecond precision is not good enough to differentiate things that
occur directly one after another, and things that have some pause in between,
increase to microsecond precision (reporting)

Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
Christian Hopps 2023-04-28 11:11:41 -04:00
parent 6b7481aa8d
commit 3e09791861

View File

@ -236,7 +236,6 @@ class Topogen(object):
self.add_topology_from_dict(topodef)
def add_topology_from_dict(self, topodef):
keylist = (
topodef.keys()
if isinstance(topodef, OrderedDict)
@ -869,7 +868,7 @@ class TopoRouter(TopoGear):
"conf t",
"log file {}.log debug".format(daemon),
"log commands",
"log timestamp precision 3",
"log timestamp precision 6",
]
),
daemon=daemon,
@ -919,7 +918,7 @@ class TopoRouter(TopoGear):
"conf t",
"log file {}.log debug".format(daemon),
"log commands",
"log timestamp precision 3",
"log timestamp precision 6",
]
),
daemon=daemon,
@ -1204,6 +1203,7 @@ class TopoExaBGP(TopoHost):
# Diagnostic function
#
# Disable linter branch warning. It is expected to have these here.
# pylint: disable=R0912
def diagnose_env_linux(rundir):