tests/test-pending.t
changeset 40092 58786930ea27
parent 36317 f14879f61cd8
child 40369 ef6cab7930b3
equal deleted inserted replaced
40091:c36846abbcd3 40092:58786930ea27
    48   >     # create the notify file so caller knows we're running
    48   >     # create the notify file so caller knows we're running
    49   >     fpath = os.path.join('$d', 'notify')
    49   >     fpath = os.path.join('$d', 'notify')
    50   >     f = open(fpath, 'w')
    50   >     f = open(fpath, 'w')
    51   >     f.close()
    51   >     f.close()
    52   >     # wait for ack - caller should delete the notify file
    52   >     # wait for ack - caller should delete the notify file
    53   >     i = $maxwait
    53   >     i = int("$maxwait")
    54   >     while os.path.exists(fpath) and i > 0:
    54   >     while os.path.exists(fpath) and i > 0:
    55   >         time.sleep(1)
    55   >         time.sleep(1)
    56   >         i -= 1
    56   >         i -= 1
    57   >     return True # reject the changesets
    57   >     return True # reject the changesets
    58   > EOF
    58   > EOF