aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2018-08-31 16:10:49 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2018-08-31 16:11:37 +0900
commitb6f3bdefce01680be8089e3732d143d7e1059b46 (patch)
tree4e82e58b82a612fbf34508320c2e285e95ba101b /org.eclipse.jgit.test
parentc64de36a06ea84d68c5abe311e0ccdb11fcbfd4b (diff)
parent0718d22cf4d3f2db0229bae0fde65b2e6df238c9 (diff)
downloadjgit-b6f3bdefce01680be8089e3732d143d7e1059b46.tar.gz
jgit-b6f3bdefce01680be8089e3732d143d7e1059b46.zip
Merge branch 'stable-5.0' into stable-5.1
* stable-5.0: Bazel: Use hyphen instead of underscore in external repository names Bazel: Format all build files with buildifier 0.15.0 ChangeIdUtilTest: Remove unused notestCommitDashV Change-Id: I7c2fc7d694d7d891cac96cb805c89c8bdf7c5cbf Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tests.bzl110
1 files changed, 55 insertions, 55 deletions
diff --git a/org.eclipse.jgit.test/tests.bzl b/org.eclipse.jgit.test/tests.bzl
index 64dfe071cf..bc06e3ef40 100644
--- a/org.eclipse.jgit.test/tests.bzl
+++ b/org.eclipse.jgit.test/tests.bzl
@@ -4,62 +4,62 @@ load(
)
def tests(tests):
- for src in tests:
- name = src[len('tst/'):len(src)-len('.java')].replace('/', '_')
- labels = []
- if name.startswith('org_eclipse_jgit_'):
- l = name[len('org.eclipse.jgit_'):]
- if l.startswith('internal_storage_'):
- l = l[len('internal.storage_'):]
- i = l.find('_')
- if i > 0:
- labels.append(l[:i])
- else:
- labels.append(i)
- if 'lib' not in labels:
- labels.append('lib')
+ for src in tests:
+ name = src[len("tst/"):len(src) - len(".java")].replace("/", "_")
+ labels = []
+ if name.startswith("org_eclipse_jgit_"):
+ l = name[len("org.eclipse.jgit_"):]
+ if l.startswith("internal_storage_"):
+ l = l[len("internal.storage_"):]
+ i = l.find("_")
+ if i > 0:
+ labels.append(l[:i])
+ else:
+ labels.append(i)
+ if "lib" not in labels:
+ labels.append("lib")
- # TODO(http://eclip.se/534285): Make this test pass reliably
- # and remove the flaky attribute.
- flaky = src.endswith("CrissCrossMergeTest.java")
+ # TODO(http://eclip.se/534285): Make this test pass reliably
+ # and remove the flaky attribute.
+ flaky = src.endswith("CrissCrossMergeTest.java")
- additional_deps = []
- if src.endswith("RootLocaleTest.java"):
- additional_deps = [
- '//org.eclipse.jgit.pgm:pgm',
- '//org.eclipse.jgit.ui:ui',
- ]
- if src.endswith("WalkEncryptionTest.java"):
- additional_deps = [
- '//org.eclipse.jgit:insecure_cipher_factory',
- ]
- if src.endswith("OpenSshConfigTest.java"):
- additional_deps = [
- '//lib:jsch',
- ]
- if src.endswith("JschConfigSessionFactoryTest.java"):
- additional_deps = [
- '//lib:jsch',
- ]
+ additional_deps = []
+ if src.endswith("RootLocaleTest.java"):
+ additional_deps = [
+ "//org.eclipse.jgit.pgm:pgm",
+ "//org.eclipse.jgit.ui:ui",
+ ]
+ if src.endswith("WalkEncryptionTest.java"):
+ additional_deps = [
+ "//org.eclipse.jgit:insecure_cipher_factory",
+ ]
+ if src.endswith("OpenSshConfigTest.java"):
+ additional_deps = [
+ "//lib:jsch",
+ ]
+ if src.endswith("JschConfigSessionFactoryTest.java"):
+ additional_deps = [
+ "//lib:jsch",
+ ]
- heap_size = "-Xmx256m"
- if src.endswith("HugeCommitMessageTest.java"):
- heap_size = "-Xmx512m"
+ heap_size = "-Xmx256m"
+ if src.endswith("HugeCommitMessageTest.java"):
+ heap_size = "-Xmx512m"
- junit_tests(
- name = name,
- tags = labels,
- srcs = [src],
- deps = additional_deps + [
- ':helpers',
- ':tst_rsrc',
- '//lib:javaewah',
- '//lib:junit',
- '//lib:slf4j-api',
- '//org.eclipse.jgit:jgit',
- '//org.eclipse.jgit.junit:junit',
- '//org.eclipse.jgit.lfs:jgit-lfs',
- ],
- flaky = flaky,
- jvm_flags = [heap_size, "-Dfile.encoding=UTF-8"],
- )
+ junit_tests(
+ name = name,
+ tags = labels,
+ srcs = [src],
+ deps = additional_deps + [
+ ":helpers",
+ ":tst_rsrc",
+ "//lib:javaewah",
+ "//lib:junit",
+ "//lib:slf4j-api",
+ "//org.eclipse.jgit:jgit",
+ "//org.eclipse.jgit.junit:junit",
+ "//org.eclipse.jgit.lfs:jgit-lfs",
+ ],
+ flaky = flaky,
+ jvm_flags = [heap_size, "-Dfile.encoding=UTF-8"],
+ )