mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-05-03 17:11:28 +02:00
ARM/IntegratorCP: Wait for newlines on expect script.
This commit is contained in:
@@ -16,7 +16,7 @@ set timeout 10
|
|||||||
|
|
||||||
# Wait for the test to start ("Go")
|
# Wait for the test to start ("Go")
|
||||||
expect {
|
expect {
|
||||||
"Go" {
|
"Go\r\n" {
|
||||||
puts "Test started"
|
puts "Test started"
|
||||||
|
|
||||||
# The test could take up to 3 minutes to complete once 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
|
# Now expect to see "Pass" or "Fail" within 3 minutes
|
||||||
expect {
|
expect {
|
||||||
"Pass" { puts "Test passed"; exit 0 }
|
"Pass\r\n" { puts "Test passed"; exit 0 }
|
||||||
"Fail" { puts "Test failed"; exit 1 }
|
"Fail\r\n" { puts "Test failed"; exit 1 }
|
||||||
timeout { puts "Test timed out without completing"; exit 1 }
|
timeout { puts "Test timed out without completing"; exit 1 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user