tests: fix error in VppDiedError exception 54/20654/2
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Sat, 13 Jul 2019 13:35:38 +0000 (09:35 -0400)
committerNeale Ranns <nranns@cisco.com>
Sun, 14 Jul 2019 17:13:20 +0000 (17:13 +0000)
Discovered running test-debug job in CI.

- fix missing paren () around format value.
Type: test

Change-Id: Iebddd3035a435f8ad1cb1d6fa4e8e8c2d4ddaf96
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
test/framework.py

index e5a970b..59c451d 100644 (file)
@@ -114,8 +114,8 @@ class VppDiedError(Exception):
         msg = "VPP subprocess died %sunexpectedly with return code: %d%s." % (
             in_msg,
             self.rv,
-            ' [%s]' % self.signal_name if
-            self.signal_name is not None else '')
+            ' [%s]' % (self.signal_name if
+                       self.signal_name is not None else ''))
         super(VppDiedError, self).__init__(msg)