Make desugar jar content tests compatible with --experimental_java_coverage
@@ -39,6 +39,9 @@ else
fi
JAVABASE=$3
-$JAVABASE/bin/jar tf "$1" >"${output}/actual_toc.txt"
+# Dump Jar file contents but drop coverage artifacts in case coverage is enabled
+$JAVABASE/bin/jar tf "$1" \
+ | grep -v '\.uninstrumented$' \
+ | grep -v '\-paths\-for\-coverage\.txt$' >"${output}/actual_toc.txt"
# sorting can be removed when cl/145334839 is released
diff <(sort "$2") <(sort "${output}/actual_toc.txt")
