##// END OF EJS Templates
run-tests: pre instantiate pygments objects...
run-tests: pre instantiate pygments objects This speeds up run-tests.py diff output by 10x, which affects developer experience significantly. As demonstrated by the following test: ``` #require pygments $ for i in `seq 1 200`; do > echo ' $ echo '$i >> test-a.t > echo ' wrong' >> test-a.t > done $ cat > walltime.py <<EOF > from __future__ import absolute_import, print_function > import os, sys, time > t1 = time.time() > os.system(' '.join(sys.argv[1:]) + ' >/dev/null 2>/dev/null') > t2 = time.time() > print('%0.2f' % (t2 - t1)) > EOF $ $PYTHON walltime.py $TESTDIR/run-tests.py -l --color=never $TESTTMP/test-a.t 0.24 Before this patch: $ $PYTHON walltime.py $TESTDIR/run-tests.py -l --color=always $TESTTMP/test-a.t 2.46 After this patch: $ $PYTHON walltime.py $TESTDIR/run-tests.py -l --color=always $TESTTMP/test-a.t 0.25 ```

File last commit:

r33439:0e114b99 default
r33581:20436925 stable
Show More
python3-whitelist
34 lines | 680 B | text/plain | TextLexer
test-ancestor.py
test-backwards-remove.t
test-branch-tag-confict.t
test-casecollision.t
test-check-commit.t
test-check-execute.t
test-check-pyflakes.t
test-check-pylint.t
test-check-shbang.t
test-contrib-check-code.t
test-contrib-check-commit.t
test-diff-issue2761.t
test-diff-newlines.t
test-diff-reverse.t
test-diff-subdir.t
test-dirstate-nonnormalset.t
test-doctest.py
test-empty-dir.t
test-excessive-merge.t
test-issue1089.t
test-issue1993.t
test-issue842.t
test-locate.t
test-lrucachedict.py
test-manifest.py
test-merge-default.t
test-merge-subrepos.t
test-merge2.t
test-merge5.t
test-revlog-packentry.t
test-run-tests.py
test-unified-test.t
test-update-reverse.t
test-xdg.t