tests: don't fail if QEMU is not available

Fix TEST-{08,09,10,11} to properly skip the test if QEMU is not available
instead of failing, like in the other tests.
This commit is contained in:
Martin Pitt 2016-06-23 10:23:29 +02:00
parent a415d43655
commit eaa03c05f7
4 changed files with 20 additions and 8 deletions

View File

@ -23,8 +23,11 @@ check_result_qemu() {
}
test_run() {
run_qemu || return 1
check_result_qemu || return 1
if run_qemu; then
check_result_qemu || return 1
else
dwarn "can't run QEMU, skipping"
fi
return 0
}

View File

@ -22,8 +22,11 @@ check_result_qemu() {
}
test_run() {
run_qemu || return 1
check_result_qemu || return 1
if run_qemu; then
check_result_qemu || return 1
else
dwarn "can't run QEMU, skipping"
fi
return 0
}

View File

@ -21,8 +21,11 @@ check_result_qemu() {
}
test_run() {
run_qemu || return 1
check_result_qemu || return 1
if run_qemu; then
check_result_qemu || return 1
else
dwarn "can't run QEMU, skipping"
fi
return 0
}

View File

@ -21,8 +21,11 @@ check_result_qemu() {
}
test_run() {
run_qemu || return 1
check_result_qemu || return 1
if run_qemu; then
check_result_qemu || return 1
else
dwarn "can't run QEMU, skipping"
fi
return 0
}