Re: [PATCH 3/5] tests: don't use unix socket path that matches auto-generated path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/30/2017 01:40 PM, Pavel Hrdina wrote:
> The test was introduced by 60135b22db6d.
> 
> The auto-generated path is removed by post-parse callback which
> also changes the mode from "connect" to "bind" since the auto-generated
> path makes sense only for "bind" mode.
> 
> Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
> ---
>  tests/qemuxml2argvdata/qemuxml2argv-chardev-reconnect.args | 6 ++----
>  tests/qemuxml2argvdata/qemuxml2argv-chardev-reconnect.xml  | 4 ++--
>  2 files changed, 4 insertions(+), 6 deletions(-)
> 

> diff --git a/tests/qemuxml2argvdata/qemuxml2argv-chardev-reconnect.xml b/tests/qemuxml2argvdata/qemuxml2argv-chardev-reconnect.xml
> index e0664b2a95..41ee248db3 100644
> --- a/tests/qemuxml2argvdata/qemuxml2argv-chardev-reconnect.xml
> +++ b/tests/qemuxml2argvdata/qemuxml2argv-chardev-reconnect.xml
> @@ -18,7 +18,7 @@
>        </source>
>      </redirdev>
>      <smartcard mode='passthrough' type='unix'>
> -      <source mode='connect' path='/tmp/channel/domain-oldname/asdf'>
> +      <source mode='connect' path='/tmp/channel/asdf'>
>          <reconnect enabled='yes' timeout='20'/>
>        </source>
>      </smartcard>
> @@ -29,7 +29,7 @@
>        <target type='virtio' name='asdf'/>
>      </channel>
>      <channel type='unix'>
> -      <source mode='connect' path='/tmp/channel/domain-oldname/fdsa'>
> +      <source mode='connect' path='/tmp/channel/fdsa'>
>          <reconnect enabled='no'/>
>        </source>
>        <target type='virtio' name='fdsa'/>
> 

This looks like it's fixing just a symptom not the cause. What if I have
a domain that has autogenerated path and I also set reconnect?

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux