tests/tcg: fix diff-out pass to properly report failure
commitef860047b61ea4a5ad407496ab8cda6370a2d7d8
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 5 Jul 2019 11:56:35 +0000 (5 12:56 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 10 Jul 2019 09:31:22 +0000 (10 10:31 +0100)
tree5508512b33e87c3f62696db39bbacff40c1aabad
parentbd2c0f67e1f9e4b90d3020d004bd8d8d6655e88c
tests/tcg: fix diff-out pass to properly report failure

A side effect of piping the output to head is squash the exit status
of the diff command. Fix this by only doing the pipe if the diff
failed and then ensuring the status is non-zero.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
tests/tcg/Makefile