Re: [PATCH 2/8] tests: Use DO_TEST_CAPS_*() for Intel IOMMU

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

 



On Wed, May 22, 2019 at 10:33:39AM +0200, Andrea Bolognani wrote:
On Tue, 2019-05-21 at 16:15 +0200, Ján Tomko wrote:
On Mon, May 20, 2019 at 01:37:47PM +0200, Andrea Bolognani wrote:
> diff --git a/tests/qemuxml2argvdata/intel-iommu-machine.xml b/tests/qemuxml2argvdata/intel-iommu-machine.xml
> index 90aba16156..85027cd938 100644
> --- a/tests/qemuxml2argvdata/intel-iommu-machine.xml
> +++ b/tests/qemuxml2argvdata/intel-iommu-machine.xml
> @@ -5,7 +5,7 @@
>   <currentMemory unit='KiB'>219100</currentMemory>
>   <vcpu placement='static'>1</vcpu>
>   <os>
> -    <type arch='x86_64' machine='q35'>hvm</type>
> +    <type arch='x86_64' machine='pc-q35-2.6'>hvm</type>

Given that this is the only difference between intel-iommu-machine.xml
and intel-iommu.xml, could you delete intel-iommu-machine.xml
and use DO_TEST_CAPS_VER with 2.6.0?

We won't be able to reuse the XML file due to only striping the machine
aliases for latest XML files, but it will show we use the same input
file.

I'm not sure I fully understand what you're suggesting... Do you mean
squashing in something like the diff below?


Yes.

Personally I like the idea of using the same input file for different
DO_TEST*() calls, highlighting how the environment is the only thing
causing differences in the output. That said, in the past I've been
told (I think by Peter?) doing so is not a good idea, so I've avoided
it since.


For xml->argv test, the outputs are very different. But the xml->xml
test only changes the machine type, which is IMO not worth including
another input file.

We'd also lose, as you mention yourself, the nice property of the
output file being a symlink to the input file.

tl;dr I'm perfectly happy using either the patch as-is or with the
     diff below squashed in; you guys tell me which one I should go
     for.


With this diff squashed in, please.

Jano

Attachment: signature.asc
Description: PGP signature

--
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