diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/test/shell/bazel/test-setup.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/shell/bazel/test-setup.sh b/src/test/shell/bazel/test-setup.sh index 8d6d668159..b615227c7f 100755 --- a/src/test/shell/bazel/test-setup.sh +++ b/src/test/shell/bazel/test-setup.sh @@ -106,7 +106,8 @@ EOF function setup_javatest_support() { setup_javatest_common - cat <<EOF >>third_party/BUILD + grep -q 'name = "junit4"' third_party/BUILD \ + || cat <<EOF >>third_party/BUILD java_import( name = "junit4", jars = [ @@ -119,7 +120,8 @@ EOF function setup_skylark_javatest_support() { setup_javatest_common - cat <<EOF >>third_party/BUILD + grep -q "name = \"junit4-jars\"" third_party/BUILD \ + || cat <<EOF >>third_party/BUILD filegroup( name = "junit4-jars", srcs = [ |