diff --git a/infer/tests/base.make b/infer/tests/base.make index 52cb484ce..bfa00bffb 100644 --- a/infer/tests/base.make +++ b/infer/tests/base.make @@ -25,7 +25,8 @@ define check_no_duplicates endef define check_no_diff - diff -u $(1) $(2) >&2 || \ + git --no-pager diff --color=auto --no-ext-diff --no-index --word-diff --unified=1 --minimal \ + $$(realpath $(1)) $$(realpath $(2)) >&2 || \ (printf '\n' >&2; \ printf '$(TERM_ERROR)Test output ($(2)) differs from expected test output $(1)$(TERM_RESET)\n' >&2; \ printf '$(TERM_ERROR)Run the following command to replace the expected test output with the new output:$(TERM_RESET)\n' >&2; \