comparison tests/test-run-tests.t @ 40245:e7e70c033783

run-tests: run tests with as many processes as cores by default This seems like a useful default behavior so tests run faster by default* * Except in special circumstances where the OS/filesystem doesn't scale well to many CPU cores (like APFS *cough* *cough*). Differential Revision: https://phab.mercurial-scm.org/D5071
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 13 Oct 2018 12:20:24 +0200
parents 1039404c5e1d
children d5ff54152636
comparison
equal deleted inserted replaced
40244:1039404c5e1d 40245:e7e70c033783
13 13
14 Define a helper to avoid the install step 14 Define a helper to avoid the install step
15 ============= 15 =============
16 $ rt() 16 $ rt()
17 > { 17 > {
18 > "$PYTHON" $TESTDIR/run-tests.py --with-hg=`which hg` "$@" 18 > "$PYTHON" $TESTDIR/run-tests.py --with-hg=`which hg` -j1 "$@"
19 > } 19 > }
20 20
21 error paths 21 error paths
22 22
23 #if symlink 23 #if symlink
1327 $LOCALIP (glob) 1327 $LOCALIP (glob)
1328 1328
1329 Add support for external test formatter 1329 Add support for external test formatter
1330 ======================================= 1330 =======================================
1331 1331
1332 $ CUSTOM_TEST_RESULT=basic_test_result "$PYTHON" $TESTDIR/run-tests.py --with-hg=`which hg` "$@" test-success.t test-failure.t 1332 $ CUSTOM_TEST_RESULT=basic_test_result "$PYTHON" $TESTDIR/run-tests.py --with-hg=`which hg` -j1 "$@" test-success.t test-failure.t
1333 running 2 tests using 1 parallel processes 1333 running 2 tests using 1 parallel processes
1334 1334
1335 # Ran 2 tests, 0 skipped, 0 failed. 1335 # Ran 2 tests, 0 skipped, 0 failed.
1336 ON_START! <__main__.TestSuite tests=[<__main__.TTest testMethod=test-failure.t>, <__main__.TTest testMethod=test-success.t>]> 1336 ON_START! <__main__.TestSuite tests=[<__main__.TTest testMethod=test-failure.t>, <__main__.TTest testMethod=test-success.t>]>
1337 FAILURE! test-failure.t output changed 1337 FAILURE! test-failure.t output changed