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: 817a8dc6424050973d8fad4f003475ac83ea6bb5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a317cc911a
commit
8207e3f48b
|
@ -425,13 +425,15 @@ Test_Create_Qemu()
|
||||||
|
|
||||||
if [ ${up_time} == 10 ]; then
|
if [ ${up_time} == 10 ]; then
|
||||||
Test_Info "No qemu process appeared to start, exiting"
|
Test_Info "No qemu process appeared to start, exiting"
|
||||||
|
ps axww -O ppid
|
||||||
|
Test_Info "Process list dumped for debugging purposes"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Parse IP address of target from the qemu command line
|
# Parse IP address of target from the qemu command line
|
||||||
TARGET_IPADDR=`Test_Fetch_Target_IP $QEMUPID`
|
TARGET_IPADDR=`Test_Fetch_Target_IP $QEMUPID`
|
||||||
echo "Target IP is ${TARGET_IPADDR}"
|
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"
|
Test_Info "There is no qemu process or qemu ip address found, return failed"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue