diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-20 10:58:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-27 17:28:00 +0000 |
commit | a9390e0f9e4a147f9e0a3a56b715975e58766fc0 (patch) | |
tree | fd85785276e403ed9912aa4aeb11cf28e6edebca /scripts/qemuimage-testlib | |
parent | 0e63018f9dd46ee90d7b8540a717b01f4a9752c0 (diff) | |
download | poky-a9390e0f9e4a147f9e0a3a56b715975e58766fc0.tar.gz |
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/qemuimage-testlib')
-rwxr-xr-x | scripts/qemuimage-testlib | 4 |
1 files changed, 3 insertions, 1 deletions
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() | |||
425 | 425 | ||
426 | if [ ${up_time} == 10 ]; then | 426 | if [ ${up_time} == 10 ]; then |
427 | Test_Info "No qemu process appeared to start, exiting" | 427 | Test_Info "No qemu process appeared to start, exiting" |
428 | ps axww -O ppid | ||
429 | Test_Info "Process list dumped for debugging purposes" | ||
428 | return 1 | 430 | return 1 |
429 | fi | 431 | fi |
430 | 432 | ||
431 | # Parse IP address of target from the qemu command line | 433 | # Parse IP address of target from the qemu command line |
432 | TARGET_IPADDR=`Test_Fetch_Target_IP $QEMUPID` | 434 | TARGET_IPADDR=`Test_Fetch_Target_IP $QEMUPID` |
433 | echo "Target IP is ${TARGET_IPADDR}" | 435 | echo "Target IP is ${TARGET_IPADDR}" |
434 | if [ -z ${TARGET_IPADDR} ]; then | 436 | if [ -z ${TARGET_IPADDR} -o "${TARGET_IPADDR}" = "0" ]; then |
435 | Test_Info "There is no qemu process or qemu ip address found, return failed" | 437 | Test_Info "There is no qemu process or qemu ip address found, return failed" |
436 | return 1 | 438 | return 1 |
437 | fi | 439 | fi |