Skip to contentSkip to conversation

Add a small helper script listing all recipes with QA errors.

PATCH In review Andreas Mueller 3 participants 3 messages Feb 14, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add a small helper script listing all recipes with QA errors.

---
 contrib/qa/collect-qa-errors.sh |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)
 create mode 100755 contrib/qa/collect-qa-errors.sh
contrib/qa/collect-qa-errors.sh new file +26 -0
new file mode 100755
index 0000000..45a7283
@@ -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
+
+
Signature · 1 line
1.7.2.3
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Andreas Mueller

---
 contrib/qa/collect-qa-errors.sh |   26 ++++++++++++++++++++++++++

 1 files changed, 26 insertions(+), 0 deletions(-)

 create mode 100755 contrib/qa/collect-qa-errors.sh

Quite nice :-)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br