From: juraj.linkes Date: Tue, 28 Aug 2018 16:45:18 +0000 (+0200) Subject: Fix the default step when using STEP=1 while testing X-Git-Tag: v18.10-rc1~317 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=be460e72d5d87e4272f4663d9c3edcdc147e70b6;p=vpp.git Fix the default step when using STEP=1 while testing Change-Id: I6b2950dfd0d9023b20e24845b3bce20cf4ba66df Signed-off-by: juraj.linkes --- diff --git a/test/hook.py b/test/hook.py index d7bfef6c101..7287aaa1920 100644 --- a/test/hook.py +++ b/test/hook.py @@ -182,7 +182,7 @@ class StepHook(PollHook): while True: print("Enter your choice, if any, and press ENTER to continue " "running the testcase...") - choice = sys.stdin.readline() + choice = sys.stdin.readline().rstrip('\r\n') if choice == "": choice = None try: