From eeefac9a40bad95470f8a9f1ea90f3da8e7bd6aa Mon Sep 17 00:00:00 2001 From: Kelvin Lawson Date: Mon, 18 Mar 2013 22:48:03 +0000 Subject: [PATCH] ARM/IntegratorCP: Wait for newlines on expect script. --- ports/arm/platforms/qemu_integratorcp/run_test.exp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ports/arm/platforms/qemu_integratorcp/run_test.exp b/ports/arm/platforms/qemu_integratorcp/run_test.exp index 73c68bc..5fa3e81 100755 --- a/ports/arm/platforms/qemu_integratorcp/run_test.exp +++ b/ports/arm/platforms/qemu_integratorcp/run_test.exp @@ -16,7 +16,7 @@ set timeout 10 # Wait for the test to start ("Go") expect { - "Go" { + "Go\r\n" { puts "Test started" # The test could take up to 3 minutes to complete once started @@ -24,8 +24,8 @@ expect { # Now expect to see "Pass" or "Fail" within 3 minutes expect { - "Pass" { puts "Test passed"; exit 0 } - "Fail" { puts "Test failed"; exit 1 } + "Pass\r\n" { puts "Test passed"; exit 0 } + "Fail\r\n" { puts "Test failed"; exit 1 } timeout { puts "Test timed out without completing"; exit 1 } } }