[PATCH] run-tests: add --slowtimeout and use it for slow tests
timeless
timeless at gmail.com
Sun Nov 29 00:49:15 CST 2015
Yuya Nishihara wrote:
>> @@ -922,7 +934,12 @@
This is in def _hghave(self, reqs):
>> print(stdout)
>> sys.exit(1)
>>
>> - return ret == 0
>> + if ret != 0:
>> + return False
>> +
>> + if 'slow' in reqs:
>> + self._timeout = self._slowtimeout
>
> Perhaps it won't work if there's a "#if slow" conditional.
elif l.startswith(b'#if'):
skipping = not self._hghave(lsplit[1:])
It should work :)
> and I think two "sleep 10" are enough slow to have "#if slow".
I wanted my test to show what changes/doesn't change. But I'm flexible.
More information about the Mercurial-devel
mailing list