Bug 540369. Fix logic error which prevented hang detection in unit tests from working if autorun was specified. r=ted

This commit is contained in:
Jonathan Griffin 2010-01-22 11:24:01 -08:00
parent c57571f9e6
commit 806e4be87c

View File

@ -461,7 +461,7 @@ class Mochitest(object):
# then again to actually run mochitest
if options.timeout:
timeout = options.timeout + 30
elif options.autorun:
elif not options.autorun:
timeout = None
else:
timeout = 330.0 # default JS harness timeout is 300 seconds