From 479b98aacdf7995db3f0b659698a07b24951af91 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Thu, 9 Nov 2017 17:37:24 -0200 Subject: [PATCH] topotest: specify why we are waiting This shows the user why the router teardown is taking 2 seconds long. --- tests/topotests/lib/topotest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index 8f456846c0..8cf02c26fb 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -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() -- 2.39.5