]> git.puffer.fish Git - matthieu/frr.git/commitdiff
topotest: specify why we are waiting
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 9 Nov 2017 19:37:24 +0000 (17:37 -0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:12 +0000 (20:22 -0500)
This shows the user why the router teardown is taking 2 seconds long.

tests/topotests/lib/topotest.py

index 8f456846c0fc6980162a26fdc9992e2d5c54df77..8cf02c26fb3eab1c0b727e4d20d0561300d1b59c 100644 (file)
@@ -541,7 +541,8 @@ class Router(Node):
                 if (daemonpid.isdigit() and pid_exists(int(daemonpid))):
                     self.cmd('kill -TERM %s' % daemonpid)
                     self.waitOutput()
-            sleep(2)
+            sleep(2, 'waiting for router "{}" daemons to finish'.format(
+                self.name))
             # 2nd round of kill if daemons didn't exist
             for d in StringIO.StringIO(rundaemons):
                 daemonpid = self.cmd('cat %s' % d.rstrip()).rstrip()