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

Patrick Ohly patrick.ohly at intel.com
Fri Jun 23 13:05:01 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.

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        | 103 ++++++++++++++++++-----
 2 files changed, 199 insertions(+), 21 deletions(-)
 create mode 100644 meta/lib/oeqa/selftest/cases/runcmd.py

base-commit: 1d9a88f635549e68562de681e297b9270ad02d4e
-- 
git-series 0.9.1



More information about the Openembedded-core mailing list