Fix the default step when using STEP=1 while testing 36/14536/2
authorjuraj.linkes <juraj.linkes@pantheon.tech>
Tue, 28 Aug 2018 16:45:18 +0000 (18:45 +0200)
committerDamjan Marion <dmarion@me.com>
Thu, 30 Aug 2018 10:17:54 +0000 (10:17 +0000)
Change-Id: I6b2950dfd0d9023b20e24845b3bce20cf4ba66df
Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
test/hook.py

index d7bfef6..7287aaa 100644 (file)
@@ -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: