From f5cbd5a4954b89857c9e397cacceda552484f5d5 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Tue, 15 Aug 2017 10:01:56 +0800
Subject: [PATCH] Add FAIL/PASS output to test output.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Björn Stenberg <bjst@enea.com>
Upstream-Status: Pending

Rebase to 4.4
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 tests/run-all | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/tests/run-all b/tests/run-all
index 1f74923..ba36a1f 100644
--- a/tests/run-all
+++ b/tests/run-all
@@ -57,7 +57,16 @@ do
 	case $x in
 	$0|run-minimal|run-gprof)	;;
 	*.orig|*~) ;;
-	*)	echo $x ; sh $x ; rm -f ${BASH_TSTOUT} ;;
+	*)	echo $x
+		output=`sh $x`
+		if [ -n "$output" ]; then
+			echo "$output"
+			echo "FAIL: $x"
+		else
+			echo "PASS: $x"
+		fi
+		rm -f ${BASH_TSTOUT}
+		;;
 	esac
 done
 
