make test: fix DEBUG=gdb/gdbserver options 45/11345/2
authorKlement Sekera <ksekera@cisco.com>
Fri, 23 Mar 2018 20:54:12 +0000 (21:54 +0100)
committerDave Wallace <dwallacelf@gmail.com>
Sat, 24 Mar 2018 15:20:41 +0000 (15:20 +0000)
Change-Id: I5a7fa3b1c247ad5611907db27835724dcd31f575
Signed-off-by: Klement Sekera <ksekera@cisco.com>
test/framework.py

index beea515..9c9351e 100644 (file)
@@ -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()