tests/run-tests.py
changeset 35091 6a8e85702121
parent 35069 4fb489a998c9
child 35092 1ac4c0887de4
equal deleted inserted replaced
35090:79cbf5cc4fb8 35091:6a8e85702121
   967             (br'\bHG_TXNID=TXN:[a-f0-9]{40}\b', br'HG_TXNID=TXN:$ID$'),
   967             (br'\bHG_TXNID=TXN:[a-f0-9]{40}\b', br'HG_TXNID=TXN:$ID$'),
   968             ]
   968             ]
   969         r.append((self._escapepath(self._testtmp), b'$TESTTMP'))
   969         r.append((self._escapepath(self._testtmp), b'$TESTTMP'))
   970 
   970 
   971         testdir = os.path.dirname(self.path)
   971         testdir = os.path.dirname(self.path)
   972         replacementfile = os.path.join(testdir, 'common-pattern.py')
   972         replacementfile = os.path.join(testdir, b'common-pattern.py')
   973 
   973 
   974         if os.path.exists(replacementfile):
   974         if os.path.exists(replacementfile):
   975             data = {}
   975             data = {}
   976             execfile(replacementfile, data)
   976             execfile(replacementfile, data)
   977             r.extend(data.get('substitutions', ()))
   977             r.extend(data.get('substitutions', ()))