lib/oeqa/runtime: smart: add checks for smart output
authorStefan Stanacar <stefanx.stanacar@intel.com>
Mon, 26 Aug 2013 08:51:46 +0000 (11:51 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 26 Aug 2013 15:29:18 +0000 (16:29 +0100)
commit32c9e1ea0e83e089c34d890b75b5069b193be47e
treeefcd30e23e961dcae8380165ca58d2ea22058efc
parent877849ae70cddb4cc7b6a7f59b4264dd73d9a709
lib/oeqa/runtime: smart: add checks for smart output

Sometimes smart throws:

    Committing transaction...
    Preparing...                    ######################################## [  0%]
       1:Removing psplash-default   ######################################## [100%]
    error: Couldn't fork %postun: Cannot allocate memory

and returns a 0 exit code (it thinks it succesfully removed the package,
when in reality it didn't), so we need to catch those specifically.

Also, sometimes output from download command is:
    Saving cache...http://192.168.7.1:49456/rpm/x86_64_x32/psplash-default-0.1+git0+afd4e228c6-r15.x86_64_x32.rpm
and that tricks our smart download test, so use a regex there.

(From OE-Core rev: 2ac7783e04f5e8e6005f967e1a6dd65d2fc6a19a)

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/smart.py