Show More
@@ -12,6 +12,15 b' from mercurial import (' | |||||
12 |
|
12 | |||
13 | testlockname = 'testlock' |
|
13 | testlockname = 'testlock' | |
14 |
|
14 | |||
|
15 | class lockwrapper(lock.lock): | |||
|
16 | def __init__(self, pidoffset, *args, **kwargs): | |||
|
17 | # lock.lock.__init__() calls lock(), so the pidoffset assignment needs | |||
|
18 | # to be earlier | |||
|
19 | self._pidoffset = pidoffset | |||
|
20 | super(lockwrapper, self).__init__(*args, **kwargs) | |||
|
21 | def _getpid(self): | |||
|
22 | return os.getpid() + self._pidoffset | |||
|
23 | ||||
15 | class teststate(object): |
|
24 | class teststate(object): | |
16 | def __init__(self, testcase, dir): |
|
25 | def __init__(self, testcase, dir): | |
17 | self._testcase = testcase |
|
26 | self._testcase = testcase |
General Comments 0
You need to be logged in to leave comments.
Login now