##// END OF EJS Templates
test: adjust test-push-race.t timeout's to overall test timeout...
marmoute -
r50551:c6f0bcb7 stable
parent child Browse files
Show More
@@ -48,6 +48,14 b' A set of extension and shell functions e'
48 48 > if watchpath is not None:
49 49 > ui.status(b'waiting on: %s\n' % watchpath)
50 50 > limit = 100
51 > test_default_timeout = os.environ.get('HGTEST_TIMEOUT_DEFAULT')
52 > test_timeout = os.environ.get('HGTEST_TIMEOUT')
53 > if (
54 > test_default_timeout is not None
55 > and test_timeout is not None
56 > and test_default_timeout < test_timeout
57 > ):
58 > limit = int(limit * (test_timeout / test_default_timeout))
51 59 > while 0 < limit and not os.path.exists(watchpath):
52 60 > limit -= 1
53 61 > time.sleep(0.1)
General Comments 0
You need to be logged in to leave comments. Login now