diff options
author | Klement Sekera <ksekera@cisco.com> | 2016-11-02 09:25:05 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2016-11-02 14:14:28 +0000 |
commit | 01bbbe91faac7f70abab389c56bb016af086073f (patch) | |
tree | 2e40ba5626b11b700d9b33fbb7ede73564ce5573 /test/framework.py | |
parent | 446e1f577b75f99aced8abb035a9d1bba917e89a (diff) |
Improve debug-cli in test framework
Opening debug-cli only makes sense if there is time for user to use it,
so either the run must be debugged or stepped. Only open the debug-cli
in these cases.
Change-Id: Ied276071797a549880d730cda43c59230a412efe
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/framework.py')
-rw-r--r-- | test/framework.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/framework.py b/test/framework.py index 8c39701ba4b..ed71908ca2d 100644 --- a/test/framework.py +++ b/test/framework.py @@ -113,8 +113,10 @@ class VppTestCase(unittest.TestCase): cls.set_debug_flags(d) cls.vpp_bin = os.getenv('VPP_TEST_BIN', "vpp") cls.plugin_path = os.getenv('VPP_TEST_PLUGIN_PATH') - cls.vpp_cmdline = [cls.vpp_bin, "unix", "{", "nodaemon", - "cli-listen localhost:5002", "}", + debug_cli = "" + if cls.step or cls.debug_gdb or cls.debug_gdbserver: + debug_cli = "cli-listen localhost:5002" + cls.vpp_cmdline = [cls.vpp_bin, "unix", "{", "nodaemon", debug_cli, "}", "api-segment", "{", "prefix", cls.shm_prefix, "}"] if cls.plugin_path is not None: cls.vpp_cmdline.extend(["plugin_path", cls.plugin_path]) |