aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2018-03-23 21:54:12 +0100
committerDave Wallace <dwallacelf@gmail.com>2018-03-24 15:20:41 +0000
commite1ace19b65aed31e5250d5087e5041345cecb620 (patch)
tree1cef38d47f831a1bbfdb2e0cc36c09cc193bfb0d
parentb6866046df9213f1bb5cc9528c63fb011be76692 (diff)
make test: fix DEBUG=gdb/gdbserver options
Change-Id: I5a7fa3b1c247ad5611907db27835724dcd31f575 Signed-off-by: Klement Sekera <ksekera@cisco.com>
-rw-r--r--test/framework.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/framework.py b/test/framework.py
index beea515df53..9c9351e4dac 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -269,7 +269,7 @@ class VppTestCase(unittest.TestCase):
print("Now is the time to attach a gdb by running the above "
"command and set up breakpoints etc.")
print(single_line_delim)
- sys.stdin.readline("Press ENTER to continue running the testcase...")
+ raw_input("Press ENTER to continue running the testcase...")
@classmethod
def run_vpp(cls):
@@ -383,9 +383,8 @@ class VppTestCase(unittest.TestCase):
print(double_line_delim)
print("VPP or GDB server is still running")
print(single_line_delim)
- sys.stdin.readline(
- "When done debugging, press ENTER to kill the process and "
- "finish running the testcase...")
+ raw_input("When done debugging, press ENTER to kill the "
+ "process and finish running the testcase...")
os.write(cls.pump_thread_wakeup_pipe[1], 'ding dong wake up')
cls.pump_thread_stop_flag.set()