From dedb06b2f5b104105665997bf229433a9406ee5c Mon Sep 17 00:00:00 2001 From: Bob Lantz <rlantz@cs.stanford.edu> Date: Thu, 25 Sep 2014 18:31:52 -0700 Subject: [PATCH] Wait for crlf after OK/FAILED for better -v output --- util/vm/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/vm/build.py b/util/vm/build.py index eca4096c..7d77238a 100755 --- a/util/vm/build.py +++ b/util/vm/build.py @@ -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' ) -- GitLab