]> source.dussan.org Git - jgit.git/commit
Fix some tests for running in bazel 90/104090/1
authorThomas Wolf <thomas.wolf@paranor.ch>
Thu, 31 Aug 2017 13:48:10 +0000 (15:48 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Thu, 31 Aug 2017 13:48:10 +0000 (15:48 +0200)
commitc91c20f36f2df03b792cd610b8ec54045b014159
tree0289d859183dae27144f600f9b0c50802fd4a838
parentc506f8d2dd0f0974339a087251f35e7e8d878df2
Fix some tests for running in bazel

Some tests call out to external cgit. Those tests all failed for me
locally on Mac. Turned out that the reason was that the system git
config used by the git in the bazel run contained paths with ~/ but
somehow $HOME was not set. As a result the external git returned
with exit code 128.

Fix this by passing along $HOME explicitly. Also improve assertions
to make sure we do get the stderr of the external command in the
test log.

I hadn't noticed that until now because apparently the maven build
does pass along $HOME.

Change-Id: I7069676d5cc7b23a71e79a4866fe8acab5a405f4
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.jgit.test/tst/org/eclipse/jgit/attributes/CGitAttributesTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/ignore/CGitIgnoreTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/indexdiff/IndexDiffWithSymlinkTest.java