Replace subprocess "check_output" with "Popen" 81/46981/8
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Wed, 8 Nov 2017 12:41:36 +0000 (12:41 +0000)
committerRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Fri, 22 Dec 2017 11:40:01 +0000 (11:40 +0000)
commit090b1a166bd19bdb98b0311d58b85582bd1676ed
tree74e9c509a9b5e58d8e69773f31dca85b78e13216
parent9bef739e89f3b230c9e0a53c2286a440017ec948
Replace subprocess "check_output" with "Popen"

"check_output" is a blocking wrapper for "Popen" which returns the output
of the command execution or raises an exception in case of error.

"Popen" is a non-blocking function that allows to create asynchronous
tasks. It returns any possible execution error but doesn't raise an
exception; this is delegated to the developer.

This code is used in the Yardstick CLI base test class.

Change-Id: Ie3e1228b2d40cb306354447653678bf581bc9697
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
tests/functional/utils.py
tests/unit/common/test_process.py
tests/unit/common/test_utils.py
yardstick/common/exceptions.py [new file with mode: 0644]
yardstick/common/process.py
yardstick/common/utils.py