]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: change topotest log timestamp precision to 6. 13406/head
authorChristian Hopps <chopps@labn.net>
Fri, 28 Apr 2023 15:11:41 +0000 (11:11 -0400)
committerChristian Hopps <chopps@labn.net>
Sat, 29 Apr 2023 06:36:17 +0000 (02:36 -0400)
- 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>
tests/topotests/lib/topogen.py

index 3583ce17edf5b13de8b732af30fc51931a69feae..2d6138990ef87e3dcd37c58690d28a7ebdacd645 100644 (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):