tests: make TEST-12-ISSUE-3171 nspawn invocation consistent with other tests
The result of check_nspawn does not mean much, and this forgot to ask check_nspawn() whether nspawn can be used at all. This brings TEST-12-ISSUE-3171 in line with other nspawn tests.
This commit is contained in:
parent
eaa03c05f7
commit
633736bbf4
|
@ -6,8 +6,12 @@ TEST_DESCRIPTION="https://github.com/systemd/systemd/issues/3171"
|
||||||
. $TEST_BASE_DIR/test-functions
|
. $TEST_BASE_DIR/test-functions
|
||||||
|
|
||||||
test_run() {
|
test_run() {
|
||||||
run_nspawn || return 1
|
if check_nspawn; then
|
||||||
check_result_nspawn || return 1
|
run_nspawn
|
||||||
|
check_result_nspawn || return 1
|
||||||
|
else
|
||||||
|
dwarn "can't run systemd-nspawn, skipping"
|
||||||
|
fi
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue