tests: extract extension configuration into a testutil library
Thanks to Felipe Contreras for the patch which this was based on. Even though the MQ extension was only used in a single test (test-pull-after-strip.t), I included it in the testutil. It shouldn't hurt anything to have it enabled and not used, and saves us from having to deal with enabling extensions in individual tests at all. Similarly, this changeset results in the graphlog extension being enabled for all tests, even though there were some that didn't use it before. This is even less significant in Mercurial 2.3+, since in those versions, graphlog is part of core, and is available even when the extension is disabled.
Showing
- tests/test-bookmark-workflow.t 3 additions, 3 deletionstests/test-bookmark-workflow.t
- tests/test-clone.t 3 additions, 4 deletionstests/test-clone.t
- tests/test-conflict-1.t 3 additions, 4 deletionstests/test-conflict-1.t
- tests/test-conflict-2.t 3 additions, 4 deletionstests/test-conflict-2.t
- tests/test-convergedmerge.t 3 additions, 4 deletionstests/test-convergedmerge.t
- tests/test-empty-working-tree.t 3 additions, 3 deletionstests/test-empty-working-tree.t
- tests/test-encoding.t 3 additions, 4 deletionstests/test-encoding.t
- tests/test-file-removal.t 3 additions, 4 deletionstests/test-file-removal.t
- tests/test-git-clone.t 3 additions, 4 deletionstests/test-git-clone.t
- tests/test-git-submodules.t 3 additions, 4 deletionstests/test-git-submodules.t
- tests/test-git-tags.t 3 additions, 4 deletionstests/test-git-tags.t
- tests/test-git-workflow.t 3 additions, 4 deletionstests/test-git-workflow.t
- tests/test-help.t 2 additions, 2 deletionstests/test-help.t
- tests/test-hg-author.t 3 additions, 4 deletionstests/test-hg-author.t
- tests/test-hg-branch.t 3 additions, 4 deletionstests/test-hg-branch.t
- tests/test-hg-tags.t 3 additions, 4 deletionstests/test-hg-tags.t
- tests/test-incoming.t 3 additions, 4 deletionstests/test-incoming.t
- tests/test-keywords.t 3 additions, 3 deletionstests/test-keywords.t
- tests/test-merge.t 3 additions, 4 deletionstests/test-merge.t
- tests/test-octopus.t 3 additions, 4 deletionstests/test-octopus.t
Loading
Please register or sign in to comment