提交 d9c75c8d 编写于 作者: O Osier Yang 提交者: Daniel Veillard

tests: fix daemon-conf testing failure

libvirtd.conf uses "libvirt" as the value of "unix_sock_group",
however, group "libvirt" may not exist on the system, in this case
the case will always fail.

As a solution, replace "libvirt" with "$USER" in "tmp.conf".
上级 04cbfa4f
...@@ -25,6 +25,9 @@ grep -v '\"PARAMETER = VALUE\"' "$conf" | grep '[a-z_] *= *[^ ]' | grep -vE '^ ...@@ -25,6 +25,9 @@ grep -v '\"PARAMETER = VALUE\"' "$conf" | grep '[a-z_] *= *[^ ]' | grep -vE '^
# Start with the sample libvirtd.conf file, uncommenting all real directives. # Start with the sample libvirtd.conf file, uncommenting all real directives.
sed -n 's/^#\([^ #]\)/\1/p' "$conf" > tmp.conf sed -n 's/^#\([^ #]\)/\1/p' "$conf" > tmp.conf
sed -e "s/^\(unix_sock_group =\).*/\1 \"$USER\"/g" tmp.conf > k
mv k tmp.conf
# Iterate through that list of directives, corrupting one RHS at a # Iterate through that list of directives, corrupting one RHS at a
# time and running libvirtd with the resulting config. Each libvirtd # time and running libvirtd with the resulting config. Each libvirtd
# invocation must fail. # invocation must fail.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册