1279 # Ran 5 tests, 0 skipped, 0 failed. |
1279 # Ran 5 tests, 0 skipped, 0 failed. |
1280 $ rm -rf tmp tmpp |
1280 $ rm -rf tmp tmpp |
1281 |
1281 |
1282 support for running run-tests.py from another directory |
1282 support for running run-tests.py from another directory |
1283 $ mkdir tmp && cd tmp |
1283 $ mkdir tmp && cd tmp |
|
1284 |
1284 $ cat > useful-file.sh << EOF |
1285 $ cat > useful-file.sh << EOF |
1285 > important command |
1286 > important command |
1286 > EOF |
1287 > EOF |
1287 |
1288 |
1288 $ cat > test-folder.t << EOF |
1289 $ cat > test-folder.t << EOF |
1289 > $ cat \$TESTDIR/useful-file.sh |
1290 > $ cat \$TESTDIR/useful-file.sh |
1290 > important command |
1291 > important command |
1291 > EOF |
1292 > EOF |
1292 |
1293 |
|
1294 $ cat > test-folder-fail.t << EOF |
|
1295 > $ cat \$TESTDIR/useful-file.sh |
|
1296 > important commando |
|
1297 > EOF |
|
1298 |
1293 $ cd .. |
1299 $ cd .. |
1294 $ $PYTHON $TESTDIR/run-tests.py tmp/test-folder.t |
1300 $ $PYTHON $TESTDIR/run-tests.py tmp/test-*.t |
1295 . |
1301 |
1296 # Ran 1 tests, 0 skipped, 0 failed. |
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 support for bisecting failed tests automatically |
1316 support for bisecting failed tests automatically |
1299 $ hg init bisect |
1317 $ hg init bisect |
1300 $ cd bisect |
1318 $ cd bisect |
1301 $ cat >> test-bisect.t <<EOF |
1319 $ cat >> test-bisect.t <<EOF |