Wait for crlf after OK/FAILED for better -v output

This commit is contained in:
Bob Lantz
2014-09-25 18:43:07 -07:00
parent 5fc3f57ede
commit dedb06b2f5
+1 -1
View File
@@ -509,7 +509,7 @@ def coreTest( vm, prompt=Prompt ):
# know the time for each test, which means that this
# script will have to change as we add more tests.
for test in range( 0, 2 ):
if vm.expect( [ 'OK', 'FAILED', pexpect.TIMEOUT ], timeout=180 ) == 0:
if vm.expect( [ 'OK.*\r\n', 'FAILED.*\r\n', pexpect.TIMEOUT ], timeout=180 ) == 0:
log( '* Test', test, 'OK' )
else:
log( '* Test', test, 'FAILED' )