提交 a1db95d0 编写于 作者: M Martin Kletzander

tests: Don't test user config file if ran as root

上级 38716772
...@@ -56,7 +56,11 @@ bad_uri="test:///default?bad_uri" ...@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册