sanity.bbclass: Various improvements
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jun 2013 16:45:33 +0000 (17:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Jun 2013 14:41:33 +0000 (15:41 +0100)
commit79d7c35b19803c4c1336870b74f7404276d54bc2
tree58a9fe23d1969294c3618eaf3e8837d179a491e7
parent89bb9b86b5aaaf930fd7f860691346c92340db29
sanity.bbclass: Various improvements

I started trying to make some changes in sanity.bbclass and couldn't stand
the current code. This patch splits out the one big function into a number
of smaller units and adds a status class which handles queuing of messages
and issues like network errors and whether a reparse is required. It also
cleans up some syntax and obsolete code.

The other fundamental change is the tests are split into ones which run
once and those which run at every build. This was always the way the
class was intended to work but that got lost somewhere along the way.
This patch fixes that.

Its still far from perfect but it is hopefully an improvement
and sets the scene for other improvements to be built on top of this.

(From OE-Core rev: 4e6de6d5f0454024eec2ec775a938c5dab70610c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass