Print offending diff when check-abi fails

Message ID 20140624063802.GA19745@spoyarek.pnq.redhat.com
State Committed
Headers

Commit Message

Siddhesh Poyarekar June 24, 2014, 6:38 a.m. UTC
  The earlier version of check-abi would print a diff of the expected
ABI vs the built ABI when there was a difference.  Bring back this
behaviour.

	* Makerules (check-abi): Dump diff of symlist if the test
	fails.

---
 Makerules | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Comments

Andreas Schwab June 24, 2014, 7:24 a.m. UTC | #1
Siddhesh Poyarekar <siddhesh@redhat.com> writes:

> 	* Makerules (check-abi): Dump diff of symlist if the test
> 	fails.

Ok.

Andreas.
  

Patch

diff --git a/Makerules b/Makerules
index 817d07e..6b30e8c 100644
--- a/Makerules
+++ b/Makerules
@@ -1257,7 +1257,8 @@  subdir_check-abi: check-abi
 subdir_update-abi: update-abi
 else
 check-abi: subdir_check-abi
-	if grep -q '^FAIL:' $(objpfx)*/check-abi*.test-result; then exit 1; fi
+	if grep -q '^FAIL:' $(objpfx)*/check-abi*.test-result; then \
+		cat $(objpfx)*/check-abi*.out && exit 1; fi
 update-abi: subdir_update-abi
 endif