Add require root user to test_case_xfail. Avoids reporting expected
failure for the wrong reason with unprivileged runs (puffs access denied).
This commit is contained in:
parent
c5191c6734
commit
59bc3aabda
@ -44,6 +44,9 @@ test_case_xfail()
|
||||
local check_function="${1}"; shift
|
||||
|
||||
atf_test_case "${name}" cleanup
|
||||
eval "${name}_head() { \
|
||||
atf_set "require.user" "root" ; \
|
||||
}"
|
||||
eval "${name}_body() { \
|
||||
atf_expect_fail "${reason}" ; \
|
||||
${check_function} " "${@}" "; \
|
||||
|
Loading…
Reference in New Issue
Block a user