Browse Source

Bazel: Disable SecurityManagerMissingPermissionsTest test

In Id5376f09f0d a test with dependency on log4j library was added, but
the library was missed to be added to the Bazel build tool chain.

Given that Bazel test runner doesn't suport custom security manager the
test wouldn't pass even if the missing dependency would be added. The
only solution we have for now is to exclude that test from Bazel tool
chain.

Filed a feature request for bazel to support such tests at
https://github.com/bazelbuild/bazel/issues/11146

Bug: 562274
Change-Id: I873a0e09addc583455b68122f66cd3952e485f0e
Signed-off-by: David Ostrovsky <david@ostrovsky.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.7
David Ostrovsky 5 years ago committed by Matthias Sohn
parent
commit
9b2f8ced90
  1. 1
      org.eclipse.jgit.test/BUILD
  2. 4
      org.eclipse.jgit.test/tests.bzl

1
org.eclipse.jgit.test/BUILD

@ -40,6 +40,7 @@ DATA = [
EXCLUDED = [
PKG + "api/SecurityManagerTest.java",
PKG + "api/SecurityManagerMissingPermissionsTest.java",
]
RESOURCES = glob(["resources/**"])

4
org.eclipse.jgit.test/tests.bzl

@ -42,6 +42,10 @@ def tests(tests):
additional_deps = [
"//lib:jsch",
]
if src.endswith("SecurityManagerMissingPermissionsTest.java"):
additional_deps = [
"//lib:log4j",
]
if src.endswith("JSchSshTest.java"):
additional_deps = [
"//lib:jsch",

Loading…
Cancel
Save