aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qemuimage-testlib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-26 12:43:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-26 17:46:52 +0000
commit7c2137a07cca8e1d40d3c8b4b2c6321d80f2b1de (patch)
tree4ac5934758ded37458e4500c1292eea2d1834b7b /scripts/qemuimage-testlib
parent90fc8efb88f82f111523e6584e66ae4ff5851426 (diff)
downloadopenembedded-core-7c2137a07cca8e1d40d3c8b4b2c6321d80f2b1de.tar.gz
qemuimagetest: fix erroneous ps errors when qemu couldn't be started
The helper script was printing an error to stdout when it couldn't find any qemu child processes; output this error to stderr instead and redirect stderr to /dev/null when running from qemuimage-testlib so that QEMUPID is actually blank if there are no qemu instances found. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/qemuimage-testlib')
-rwxr-xr-xscripts/qemuimage-testlib2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib
index 551011cbaf..6377c7f27a 100755
--- a/scripts/qemuimage-testlib
+++ b/scripts/qemuimage-testlib
@@ -420,7 +420,7 @@ Test_Create_Qemu()
while [ ${up_time} -lt 10 ]
do
- QEMUPID=`qemuimage-testlib-pythonhelper --findqemu $XTERMPID`
+ QEMUPID=`qemuimage-testlib-pythonhelper --findqemu $XTERMPID 2>/dev/null`
if [ $? -ne 0 ]; then
Test_Info "Wait for qemu up..."
up_time=`expr $up_time + 5`