lib/oeqa/qemurunner: Use a timeout in select() call
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Sep 2013 14:14:34 +0000 (14:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Sep 2013 22:04:51 +0000 (23:04 +0100)
commite72cb6e05c9dc8da6ffc08b826c00d6b52a281e1
treef01c647b0334ce010c2dadfc39ccc14b845d322d
parent008b5870ab4c3cf96707b2324b3651fdcc33cfdc
lib/oeqa/qemurunner: Use a timeout in select() call

A 0 value to select.select() immediately returns with no timeout. This was
pegging the cpu at 100% for the python process which was bad and may be
contributing to some of the timeout problems.

Profile from -P of a core-image-minimal before:

    97526792 function calls (97525652 primitive calls) in 45.189 seconds

and after:

       50204 function calls (49064 primitive calls) in 17.318 seconds

Saving 97.5 million function calls has to be good :)

(From OE-Core rev: c0551436974d179df23418567f18a082830380f6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/qemurunner.py