]> code.ossystems Code Review - openembedded-core.git/commit
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:28:55 +0000 (16:28 +0100)
commit2ac7783e04f5e8e6005f967e1a6dd65d2fc6a19a
treef193fa0ca72d7ddca8d2f66b5dd159872e1339cc
parent4a14535cd493cb2bdd46b2a5f2a1cd2b38161f0a
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.

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
meta/lib/oeqa/runtime/smart.py