[OE-core] [PATCH 0/2] enhance and test runCmd()

Patrick Ohly patrick.ohly at intel.com
Tue Jun 27 11:03:39 UTC 2017


This is mostly motivated by some long-running build tests triggered in
refkit where better output handling would be very desirable. I had
this idea already before Leonardo proposed to change the runCmd()
defaults, but as that's now a hot topic, it seemed like a good time to
actually implement it.

The result.error encoding fix is something that Leonardo also had in
his "[OE-core] [PATCH 2/2] selftest/cases: use stderr data when
querying for errors" patch.

Beware that this patch series conflicts with those patches because
that same code is changed and because the current default semantic
(joined stdout/stderr) gets explicitly tested.

Change in V2:
- fix race condition between "process has closed stdout/stderr" and
  "process has terminated" by calling wait() instead of poll()

Patrick Ohly (2):
  commands.py: live output logging + result.error encoding fix
  runcmd.py: unit testing for runCmd()

 meta/lib/oeqa/selftest/cases/runcmd.py | 117 ++++++++++++++++++++++++++-
 meta/lib/oeqa/utils/commands.py        | 107 +++++++++++++++++++-----
 2 files changed, 202 insertions(+), 22 deletions(-)
 create mode 100644 meta/lib/oeqa/selftest/cases/runcmd.py

base-commit: 563cab8e823c3fde8ae4785ceaf4d68a5d3e25df
-- 
git-series 0.9.1



More information about the Openembedded-core mailing list