]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Wait for correct message in t_iprop.py
authorGreg Hudson <ghudson@mit.edu>
Mon, 15 Oct 2012 17:11:18 +0000 (13:11 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 15 Oct 2012 17:11:18 +0000 (13:11 -0400)
The message "Got incremental updates from the master" precedes
actually replaying the updates on the slave.  Instead look for
"Incremental updates:" (the statistics message), which happens just
after the updates are replayed.

Also, we don't need to import time now that we're not sleeping.

src/tests/t_iprop.py

index aa29dff791e47d9819a8a72e2fdafc23d83a19d5..7a96a7ca70c157a971b30ca6629c5e6bb3338a00 100644 (file)
@@ -1,7 +1,6 @@
 #!/usr/bin/python
 
 import os
-import time
 
 from k5test import *
 
@@ -17,7 +16,7 @@ def wait_for_prop(realm, full_expected):
             fail('kpropd process exited unexpectedly')
         output('kpropd: ' + line)
 
-        if 'KDC is synchronized' in line or 'Got incremental updates' in line:
+        if 'KDC is synchronized' in line or 'Incremental updates:' in line:
             output('*** Sync complete\n')
             if full_expected and not full_seen:
                 fail('Expected full dump but saw only incremental')