aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/qa/collect-qa-errors.sh
blob: 45a7283f1eb956fb6ecf28c9ee0fd36c255b3cf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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