Mercurial > hg
comparison tests/run-tests.py @ 35097:fc0f3ed071fc
run-tests: outputdir also has to be changed if $TESTDIR is not $PWD
Following a18eef03d879, running run-tests.py from outside tests/ would lead to
the creation of .testtimes and test-*.t.err in $PWD instead of $TESTDIR. This
patch fixes that and updates the relevant test.
author | Matthieu Laneuville <matthieu.laneuville@octobus.net> |
---|---|
date | Sat, 18 Nov 2017 16:12:00 +0900 |
parents | 1ac4c0887de4 |
children | 6d5718e39657 |
comparison
equal
deleted
inserted
replaced
35096:23bba755cf80 | 35097:fc0f3ed071fc |
---|---|
2371 pathname) | 2371 pathname) |
2372 if self.options.outputdir: | 2372 if self.options.outputdir: |
2373 self._outputdir = canonpath(_bytespath(self.options.outputdir)) | 2373 self._outputdir = canonpath(_bytespath(self.options.outputdir)) |
2374 else: | 2374 else: |
2375 self._outputdir = self._testdir | 2375 self._outputdir = self._testdir |
2376 if testdescs and pathname: | |
2377 self._outputdir = os.path.join(self._outputdir, pathname) | |
2376 | 2378 |
2377 if 'PYTHONHASHSEED' not in os.environ: | 2379 if 'PYTHONHASHSEED' not in os.environ: |
2378 # use a random python hash seed all the time | 2380 # use a random python hash seed all the time |
2379 # we do the randomness ourself to know what seed is used | 2381 # we do the randomness ourself to know what seed is used |
2380 os.environ['PYTHONHASHSEED'] = str(random.getrandbits(32)) | 2382 os.environ['PYTHONHASHSEED'] = str(random.getrandbits(32)) |