Show More
@@ -2373,6 +2373,8 b' class TestRunner(object):' | |||
|
2373 | 2373 | self._outputdir = canonpath(_bytespath(self.options.outputdir)) |
|
2374 | 2374 | else: |
|
2375 | 2375 | self._outputdir = self._testdir |
|
2376 | if testdescs and pathname: | |
|
2377 | self._outputdir = os.path.join(self._outputdir, pathname) | |
|
2376 | 2378 | |
|
2377 | 2379 | if 'PYTHONHASHSEED' not in os.environ: |
|
2378 | 2380 | # use a random python hash seed all the time |
@@ -1281,6 +1281,7 b' support for automatically discovering te' | |||
|
1281 | 1281 | |
|
1282 | 1282 | support for running run-tests.py from another directory |
|
1283 | 1283 | $ mkdir tmp && cd tmp |
|
1284 | ||
|
1284 | 1285 | $ cat > useful-file.sh << EOF |
|
1285 | 1286 | > important command |
|
1286 | 1287 | > EOF |
@@ -1290,10 +1291,27 b' support for running run-tests.py from an' | |||
|
1290 | 1291 | > important command |
|
1291 | 1292 | > EOF |
|
1292 | 1293 | |
|
1294 | $ cat > test-folder-fail.t << EOF | |
|
1295 | > $ cat \$TESTDIR/useful-file.sh | |
|
1296 | > important commando | |
|
1297 | > EOF | |
|
1298 | ||
|
1293 | 1299 | $ cd .. |
|
1294 |
$ $PYTHON $TESTDIR/run-tests.py tmp/test- |
|
|
1295 |
|
|
|
1296 | # Ran 1 tests, 0 skipped, 0 failed. | |
|
1300 | $ $PYTHON $TESTDIR/run-tests.py tmp/test-*.t | |
|
1301 | ||
|
1302 | --- $TESTTMP/anothertests/tmp/test-folder-fail.t | |
|
1303 | +++ $TESTTMP/anothertests/tmp/test-folder-fail.t.err | |
|
1304 | @@ -1,2 +1,2 @@ | |
|
1305 | $ cat $TESTDIR/useful-file.sh | |
|
1306 | - important commando | |
|
1307 | + important command | |
|
1308 | ||
|
1309 | ERROR: test-folder-fail.t output changed | |
|
1310 | !. | |
|
1311 | Failed test-folder-fail.t: output changed | |
|
1312 | # Ran 2 tests, 0 skipped, 1 failed. | |
|
1313 | python hash seed: * (glob) | |
|
1314 | [1] | |
|
1297 | 1315 |
|
|
1298 | 1316 | support for bisecting failed tests automatically |
|
1299 | 1317 | $ hg init bisect |
General Comments 0
You need to be logged in to leave comments.
Login now