X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fhook.py;h=7287aaa192026106345cbb834a880b1f8702de97;hb=997439170aa3bb562c84e882c45331ba476e7c8e;hp=d7bfef6c1017c01aabce8474da64076a3784a704;hpb=184870ac5a266c37987e4a4d97ab4d4efefacb1f;p=vpp.git 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: