]> source.dussan.org Git - jgit.git/commit
[bazel] Skip ConfigTest#testCommitTemplatePathInHomeDirecory 20/201520/1
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 12 Jan 2022 22:45:34 +0000 (23:45 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 26 Apr 2023 19:26:05 +0000 (21:26 +0200)
commit61d4e31349719778bce67fc9ec707cbb0a98def6
treed104e8efbd33c670bead5fba57dd9acae56e3041
parentf3a3a2e8772222d89e4fbcf1dab43aa08935ea97
[bazel] Skip ConfigTest#testCommitTemplatePathInHomeDirecory

Move this test to another class and skip it when running tests with
bazel since the bazel test runner does not allow to create files in the
home directory.

FS#userHome retrieves the home directory on the first call and caches it
for subsequent calls to avoid overhead in case path translation is
required (currently on cygwin). This prevents that the test can mock the
home directory using MockSystemReader like SshTestHarness does.

Change-Id: I6a22f37f4a19eb4b4935509eae508a23e56db7aa
org.eclipse.jgit.test/BUILD
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/CommitTemplateConfigTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java