Add a small helper script listing all recipes with QA errors.
authorAndreas Müller <schnitzeltony@gmx.de>
Tue, 15 Feb 2011 05:06:48 +0000 (05:06 +0000)
committerKhem Raj <raj.khem@gmail.com>
Mon, 14 Feb 2011 22:14:00 +0000 (14:14 -0800)
Signed-off-by: Andreas Mueller <schnitzeltony@gmx.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
contrib/qa/collect-qa-errors.sh [new file with mode: 0755]

diff --git a/contrib/qa/collect-qa-errors.sh b/contrib/qa/collect-qa-errors.sh
new file mode 100755 (executable)
index 0000000..45a7283
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# A little script outputting information on all recipes with QA errors
+
+bb_tmp_dir=$(bitbake -e | grep 'TMPDIR="' | sed -e s/TMPDIR=// \
+                                                -e s/\"//g)
+
+# each temp dir is checked
+for log_dir in ${bb_tmp_dir}/work/*/*/temp ; do
+       # checked only log files
+       for log_file in ${log_dir}/log.do_* ; do
+               if [ -e  $log_file ] ; then
+                       qa_err=$(grep 'ERROR: QA' $log_file)
+                       if [[ -n  $qa_err ]] ; then
+                               # Bingo
+                               str=${log_file%/*}
+                               str=${str%/*}
+                               echo $str
+                               # output only one occurance per recipe
+                               break
+                       fi
+               fi
+       done
+done
+
+