diff --git a/util/vm/build.py b/util/vm/build.py
index b874e05a763e2c0eb34bcb81cea665e601092b66..22683c98f9bd4c13af5af9e574650b9c2e36ce80 100755
--- a/util/vm/build.py
+++ b/util/vm/build.py
@@ -427,7 +427,7 @@ def interact( vm ):
     # 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=60 ) == 0:
+        if vm.expect( [ 'OK', 'FAILED', pexpect.TIMEOUT ], timeout=60 ) == 0:
             log( '* Test', test, 'OK' )
         else:
             log( '* Test', test, 'FAILED' )