mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user