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

2017-06-27 Thread Patrick Ohly
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
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

2017-06-23 Thread Patrick Ohly
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
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core