mirror of
https://github.com/libvirt/libvirt.git
synced 2025-01-24 15:26:40 -06:00
tests: Don't test user config file if ran as root
This commit is contained in:
parent
38716772d0
commit
a1db95d0fe
@ -56,7 +56,11 @@ bad_uri="test:///default?bad_uri"
|
|||||||
good_uri="test:///default?good_uri"
|
good_uri="test:///default?good_uri"
|
||||||
|
|
||||||
printf "uri_default=\"%s\"\n" "$good_uri" >"$XDG_CONFIG_HOME/libvirt/libvirt.conf"
|
printf "uri_default=\"%s\"\n" "$good_uri" >"$XDG_CONFIG_HOME/libvirt/libvirt.conf"
|
||||||
test_uri "User config file"
|
if uid_is_privileged_; then
|
||||||
|
test_skip_case "$counter" "User config file" "must not be run as root"
|
||||||
|
else
|
||||||
|
test_uri "User config file"
|
||||||
|
fi
|
||||||
|
|
||||||
printf "uri_default=\"%s\"\n" "$bad_uri" >"$XDG_CONFIG_HOME/libvirt/libvirt.conf"
|
printf "uri_default=\"%s\"\n" "$bad_uri" >"$XDG_CONFIG_HOME/libvirt/libvirt.conf"
|
||||||
export LIBVIRT_DEFAULT_URI="$good_uri"
|
export LIBVIRT_DEFAULT_URI="$good_uri"
|
||||||
|
Loading…
Reference in New Issue
Block a user