summaryrefslogtreecommitdiffstats
path: root/test/framework.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-06-18 22:59:55 -0400
committerDamjan Marion <dmarion@me.com>2019-06-20 03:37:54 +0000
commit3a9f11e6d93c9839c7bb0aaa62662299165123d8 (patch)
tree930a341769d6521ae95bd479132f0f744b3f899c /test/framework.py
parentc09b7fd05104745a535a26794c0e680d7a6781c5 (diff)
tests: add sudo to gdb commands
Prepend sudo to the gdb command line. Type: test Change-Id: I09013c3ca512e26de0c46c02f643b21064ba499c Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/framework.py')
-rw-r--r--test/framework.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/framework.py b/test/framework.py
index fd91d4c9d5e..26e93e4abd9 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -351,12 +351,13 @@ class VppTestCase(unittest.TestCase):
print(single_line_delim)
print("You can debug the VPP using e.g.:")
if cls.debug_gdbserver:
- print("gdb " + cls.vpp_bin + " -ex 'target remote localhost:7777'")
+ print("sudo gdb " + cls.vpp_bin +
+ " -ex 'target remote localhost:7777'")
print("Now is the time to attach a gdb by running the above "
"command, set up breakpoints etc. and then resume VPP from "
"within gdb by issuing the 'continue' command")
elif cls.debug_gdb:
- print("gdb " + cls.vpp_bin + " -ex 'attach %s'" % cls.vpp.pid)
+ print("sudo gdb " + cls.vpp_bin + " -ex 'attach %s'" % cls.vpp.pid)
print("Now is the time to attach a gdb by running the above "
"command and set up breakpoints etc.")
print(single_line_delim)