Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 28eb06047ebd2deaa8c7cd2bf6655ef6a469dc14 Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Tue, 15 Aug 2017 10:01:56 +0800 |
| 4 | Subject: [PATCH 1/2] Add FAIL/PASS output to test output. |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | |
| 9 | Signed-off-by: Bjรถrn Stenberg <bjst@enea.com> |
| 10 | Upstream-Status: Pending |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 11 | |
| 12 | Rebase to 4.4 |
| 13 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 14 | --- |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 15 | tests/run-all | 11 ++++++++++- |
| 16 | 1 file changed, 10 insertions(+), 1 deletion(-) |
| 17 | |
| 18 | diff --git a/tests/run-all b/tests/run-all |
| 19 | index 2882fe0..e21d026 100644 |
| 20 | --- a/tests/run-all |
| 21 | +++ b/tests/run-all |
| 22 | @@ -33,7 +33,16 @@ do |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | case $x in |
| 24 | $0|run-minimal|run-gprof) ;; |
| 25 | *.orig|*~) ;; |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 26 | - *) echo $x ; sh $x ; rm -f ${BASH_TSTOUT} ;; |
| 27 | + *) echo $x |
| 28 | + output=`sh $x` |
| 29 | + if [ -n "$output" ]; then |
| 30 | + echo "$output" |
| 31 | + echo "FAIL: $x" |
| 32 | + else |
| 33 | + echo "PASS: $x" |
| 34 | + fi |
| 35 | + rm -f ${BASH_TSTOUT} |
| 36 | + ;; |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 37 | esac |
| 38 | done |
| 39 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 40 | -- |
| 41 | 1.8.3.1 |
| 42 | |