From 3e09791861339b639568aae2f1e8c543424c29d7 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Fri, 28 Apr 2023 11:11:41 -0400 Subject: [PATCH] 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 --- tests/topotests/lib/topogen.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index 3583ce17ed..2d6138990e 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -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): -- 2.39.5