From 40e3c381c25c4c537b95f31f513a110b16df39f5 Mon Sep 17 00:00:00 2001 From: Simon Mavi Stewart Date: Wed, 24 May 2023 10:43:51 +0100 Subject: [PATCH] A little printf debugging --- .../java_export/check-excluded-packages-are-excluded.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/integration/java_export/check-excluded-packages-are-excluded.sh b/tests/integration/java_export/check-excluded-packages-are-excluded.sh index 486b84bd2..db4682908 100755 --- a/tests/integration/java_export/check-excluded-packages-are-excluded.sh +++ b/tests/integration/java_export/check-excluded-packages-are-excluded.sh @@ -15,6 +15,7 @@ jar_file=$(rlocation rules_jvm_external/tests/integration/java_export/with-proto # Calling rlocation will also call `set -e` (see line 9) set +e +echo $jar_file found=$(jar tvf "${jar_file}" | grep "com/google/protobuf") if [ "$found" ]; then @@ -25,6 +26,7 @@ fi pom_file=$(rlocation rules_jvm_external/tests/integration/java_export/with-proto-dep-pom.xml) set +e +echo $pom_file found=$(cat "${pom_file}" | grep "protobuf-java") if [ "$found" ]; then @@ -35,9 +37,12 @@ fi pom_file=$(rlocation rules_jvm_external/tests/integration/java_export/with-added-dependency-pom.xml) set +e +echo $pom_file # Test will fail if we don't find the dep found=$(cat "${pom_file}" | grep "protobuf-java") if [ ! "$found" ]; then echo "Did not find expected dependency on protobuf when none listed" exit 1 fi + +exit 2 \ No newline at end of file