#!/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



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

Signed-off-by: Andreas Mueller <d72a15aaaca3a7afa855175c72dc8d2e05931e32@gmx.de>
Signed-off-by: Khem Raj <729d64b6f67515e258459a5f6d20ec88b2caf8df@gmail.com>
Acked-by: Otavio Salvador <1d31b11c1b92bf5d043d36edfe7174db39a6b891@ossystems.com.br>
