sapling/scripts
Jun Wu b1cbb08eb8 unit: scan extensions to run extra tests
If a test enables extension X, then changes to extension X should trigger
that test to run.

This avoids issues like D123 not updating all tests that need change.

Test Plan:
Make a test commit touching `fbamend/__init__.py`, and run `unit.py`:

  37 tests to run: test-smartlog-tweakdefaults.t test-fbamend-metaedit.t test-fbamend-split.t test-check-execute-hg.t test-check-shbang-hg.t test-fbamend-restack.t test-sqldirstate-fbhistedit.t test-fbamend-previous.t test-fbhistedit-stop.t test-fbamend-next.t test-tweakdefaults.t test-copytrace-amend.t test-fastpartialmatch-obsolete.t test-fbamend-nextrebase.t test-fbamend-hiddenoverride.t test-fbamend-fold.t test-check-config-hg.t test-fbhistedit-exec.t test-smartlog-obsolete.t test-infinitepush-bundlestore.t test-fbamend-rebase.t test-fbamend-to.t test-reset.t test-infinitepush-pullback-obsolete.t test-tweakdefaults-opawarecommands.t test-fbamend-userestack.t test-fbamend-noinhibit.t test-smartlog-inhibit.t test-check-commit-hg.t test-cleanobsstore.t test-infinitepush-backup.t test-check-code-hg.t test-check-pyflakes-hg.t test-fbamend.t test-pull-createmarkers.t test-pull-createmarkers-hide-later.t test-tweakdefaults-bookmarks.t

Note `test-smartlog-tweakdefaults.t` does not have `fbamend` in its filename
and is also triggered.

Differential Revision: https://phab.mercurial-scm.org/D148
2017-07-19 10:43:01 -07:00
..
hg-new-workdir test-check: backport test-check-execute from core hg 2016-10-18 17:58:45 +01:00
lint.py scripts: unify spwaning run-test logic 2016-10-28 13:58:48 +01:00
scm-prompt.sh scm-prompt: fix _dotfiles_scm_info 2017-04-25 10:56:35 -07:00
traceprof.py smartlog: add a simple ancestor cache 2017-05-26 09:03:58 -07:00
unit.py unit: scan extensions to run extra tests 2017-07-19 10:43:01 -07:00
utils.py unittests: drop special casing of lz4revlog extension 2017-01-19 12:58:38 -08:00
with-hg-dev arc: source hg-dev automatically 2017-04-05 13:17:03 -07:00