summaryrefslogtreecommitdiffstats
path: root/test/framework.py
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2017-09-30 22:04:21 -0400
committerFlorin Coras <florin.coras@gmail.com>2017-10-03 03:06:12 +0000
commite2efd12b8418558cd8e701368287860409e8d265 (patch)
treed9d7e756ebe382bacb8a06a9e3483473b9f797b3 /test/framework.py
parent24db0ec78fb651c4c585ebf30e07108240574045 (diff)
make test: Copy api_post_mortem.$$ file tmp test dir for archiving.
Change-Id: I4baf89ef383dbc2f309081a6b56b13ebcb8fc2df Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'test/framework.py')
-rw-r--r--test/framework.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/framework.py b/test/framework.py
index 9e1cfbe4bac..f02f2da5e6a 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -135,7 +135,7 @@ class KeepAliveReporter(object):
if not desc:
desc = str(test)
- self.pipe.send((desc, test.vpp_bin, test.tempdir))
+ self.pipe.send((desc, test.vpp_bin, test.tempdir, test.vpp.pid))
class VppTestCase(unittest.TestCase):
@@ -214,10 +214,10 @@ class VppTestCase(unittest.TestCase):
except:
pass
if coredump_size is None:
- coredump_size = "full-coredump"
+ coredump_size = "coredump-size unlimited"
cls.vpp_cmdline = [cls.vpp_bin, "unix",
- "{", "nodaemon", debug_cli, coredump_size, "}",
- "api-trace", "{", "on", "}",
+ "{", "nodaemon", debug_cli, "full-coredump",
+ coredump_size, "}", "api-trace", "{", "on", "}",
"api-segment", "{", "prefix", cls.shm_prefix, "}",
"plugins", "{", "plugin", "dpdk_plugin.so", "{",
"disable", "}", "}"]
@@ -304,11 +304,11 @@ class VppTestCase(unittest.TestCase):
cls.registry = VppObjectRegistry()
cls.vpp_startup_failed = False
cls.reporter = KeepAliveReporter()
- cls.reporter.send_keep_alive(cls)
# need to catch exceptions here because if we raise, then the cleanup
# doesn't get called and we might end with a zombie vpp
try:
cls.run_vpp()
+ cls.reporter.send_keep_alive(cls)
cls.vpp_stdout_deque = deque()
cls.vpp_stderr_deque = deque()
cls.pump_thread_stop_flag = Event()