From a9390e0f9e4a147f9e0a3a56b715975e58766fc0 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 20 Mar 2013 10:58:24 +0000 Subject: qemuimage-testlib: Add extra debugging and sanity check Check for a zero IP address since its clearly incorrect if that value is found. Also add debugging for cases where we can't find the qemu process. A process listing is handy to help understand what the problem might be. (From OE-Core rev: a822eff2362ac0284b320b2d45cf9dbf9b9dd73c) Signed-off-by: Richard Purdie --- scripts/qemuimage-testlib | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib index 5096bfc187..11768d001a 100755 --- a/scripts/qemuimage-testlib +++ b/scripts/qemuimage-testlib @@ -425,13 +425,15 @@ Test_Create_Qemu() if [ ${up_time} == 10 ]; then Test_Info "No qemu process appeared to start, exiting" + ps axww -O ppid + Test_Info "Process list dumped for debugging purposes" return 1 fi # Parse IP address of target from the qemu command line TARGET_IPADDR=`Test_Fetch_Target_IP $QEMUPID` echo "Target IP is ${TARGET_IPADDR}" - if [ -z ${TARGET_IPADDR} ]; then + if [ -z ${TARGET_IPADDR} -o "${TARGET_IPADDR}" = "0" ]; then Test_Info "There is no qemu process or qemu ip address found, return failed" return 1 fi -- cgit v1.2.3-54-g00ecf