Skip to content

Commit

Permalink
Make it work on Mac, for real.
Browse files Browse the repository at this point in the history
  • Loading branch information
meisterT committed Dec 5, 2018
1 parent c526f7d commit 5e0645a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/shell/bazel/jdeps_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ source "$(rlocation "io_bazel/src/test/shell/integration_test_setup.sh")" \
function test_jdeps() {
mkdir jdk bazeljar
cd jdk
find_option=""
if is_darwin; then
platform="macos"
find_option="-E"
else
platform="linux"
fi
Expand All @@ -71,7 +73,7 @@ function test_jdeps() {
# switching to JDK10.
# If jdeps fails with a NPE, just add the class file to the list in
# src/test/shell/bazel/jdeps_class_blacklist.txt.
find -type f -iname \*class | \
find "$find_option" -type f -iname \*class | \
grep -vFf "$blacklist" | \
xargs ../jdk/zulu9.0.7.1-jdk9.0.7-*/bin/jdeps --list-reduced-deps | \
grep -v "unnamed module" > ../jdeps \
Expand Down

0 comments on commit 5e0645a

Please sign in to comment.