[glibc] Get actually failed tests from tests.sum

Siddhesh Poyarekar siddhesh at fedoraproject.org
Thu Jul 3 17:14:16 UTC 2014


commit c1d88db4f5f0ff3807ad728f45858b30234caace
Author: Siddhesh Poyarekar <siddhesh at redhat.com>
Date:   Thu Jul 3 22:18:36 2014 +0530

    Get actually failed tests from tests.sum

 glibc.spec |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/glibc.spec b/glibc.spec
index 8c79852..762e292 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -1256,7 +1256,11 @@ pushd build-%{target}
   teepid="`ps -eo ppid,pid,command | awk '($1 == '${parent}' && $3 ~ /^tee/) { print $2 }'`"
   [ -n "$teepid" ] && kill $teepid
 ) | tee check.log || :
-find . -name '*.test-result' | xargs cat;
+echo ===================FAILED TESTS=====================
+grep -e ^FAIL -e ^ERROR tests.sum | awk '{print $2}' | while read testcase; do
+	echo "$testcase"
+	cat $testcase.out
+done
 popd
 
 ##############################################################################
@@ -1270,7 +1274,11 @@ pushd build-%{target}-nosegneg
   teepid="`ps -eo ppid,pid,command | awk '($1 == '${parent}' && $3 ~ /^tee/) { print $2 }'`"
   [ -n "$teepid" ] && kill $teepid
 ) | tee check.log || :
-find . -name '*.test-result' | xargs cat;
+echo ===================FAILED TESTS=====================
+grep -e ^FAIL -e ^ERROR tests.sum | awk '{print $2}' | while read testcase; do
+	echo "$testcase"
+	cat $testcase.out
+done
 popd
 %endif
 
@@ -1288,7 +1296,12 @@ pushd build-%{target}-power6
   teepid="`ps -eo ppid,pid,command | awk '($1 == '${parent}' && $3 ~ /^tee/) { print $2 }'`"
   [ -n "$teepid" ] && kill $teepid
 ) | tee check.log || :
-find . -name '*.test-result' | xargs cat;
+echo ===================FAILED TESTS=====================
+grep -e ^FAIL -e ^ERROR tests.sum | awk '{print $2}' | while read testcase; do
+	echo "$testcase"
+	cat $testcase.out
+	echo -------------------------
+done
 popd
 %endif
 echo ====================TESTING DETAILS=================


More information about the scm-commits mailing list