diff --git a/hadoop-ozone/dev-support/checks/_mvn_unit_report.sh b/hadoop-ozone/dev-support/checks/_mvn_unit_report.sh index 9525a9fcd4..df193307d2 100755 --- a/hadoop-ozone/dev-support/checks/_mvn_unit_report.sh +++ b/hadoop-ozone/dev-support/checks/_mvn_unit_report.sh @@ -16,6 +16,16 @@ REPORT_DIR=${REPORT_DIR:-$PWD} +_realpath() { + if realpath "$@" > /dev/null; then + realpath "$@" + else + local relative_to + relative_to=$(realpath "${1/--relative-to=/}") || return 1 + realpath "$2" | sed -e "s@${relative_to}/@@" + fi +} + ## generate summary txt file find "." -name 'TEST*.xml' -print0 \ | xargs -n1 -0 "grep" -l -E "> "$SUMMARY_FILE" done done