From 7c2137a07cca8e1d40d3c8b4b2c6321d80f2b1de Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Tue, 26 Mar 2013 12:43:04 +0000 Subject: 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 Signed-off-by: Richard Purdie --- scripts/qemuimage-testlib-pythonhelper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/qemuimage-testlib-pythonhelper') diff --git a/scripts/qemuimage-testlib-pythonhelper b/scripts/qemuimage-testlib-pythonhelper index 2ca61ca06a..2c1f557778 100755 --- a/scripts/qemuimage-testlib-pythonhelper +++ b/scripts/qemuimage-testlib-pythonhelper @@ -34,7 +34,7 @@ if options.findqemu: commands[data[0]] = data[2] if options.findqemu not in pids: - print "No children found matching %s" % options.findqemu + sys.stderr.write("No children found matching %s" % options.findqemu) sys.exit(1) parents = [] -- cgit v1.2.3