osstest: explicitly set either enable or disable qemu-traditional
PATCH 1/1 osstest: explicitly set either enable or disable qemu-traditional
Instead of setting "--enable-qemu-traditional" or not, switch to setting "--enable-qemu-traditional" or "--disable-qemu-traditional".
This avoids a latent bug in the disable case, as the availability of the option is tested via grep, which will otherwise grep for nothing.
--- ts-xen-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ts-xen-build +1 -1
@@ -144,7 +144,7 @@ END sub build () { my $xend_opt= $r{enable_xend} =~ m/true/ ? "--enable-xend" : "--disable-xend"; my $ovmf_opt= $r{enable_ovmf} =~ m/true/ ? "--enable-ovmf" : "--disable-ovmf"; - my $qemutrad_opt = $r{arch} =~ m/amd64|i386/ ? "--enable-qemu-traditional" : ""; + my $qemutrad_opt = $r{arch} =~ m/amd64|i386/ ? "--enable-qemu-traditional" : "--disable-qemu-traditional"; my $configure_prefix = $r{cmdprefix_configure} // ''; my $configure_suffix = $r{cmdsuffix_configure} // '';
Signature · 1 line
2.26.2
Juergen Gross writes ("[PATCH] osstest: explicitly set either enable or disable qemu-traditional"):
Quoted 6 lines
Instead of setting "--enable-qemu-traditional" or not, switch to setting "--enable-qemu-traditional" or "--disable-qemu-traditional".
This avoids a latent bug in the disable case, as the availability of the option is tested via grep, which will otherwise grep for nothing.
...
Quoted 1 line
+ my $qemutrad_opt = $r{arch} =~ m/amd64|i386/ ? "--enable-qemu-traditional" : "--disable-qemu-traditional";
The effect of this is that we will now explicitly disable qemu trad on non-x86 architectures (assuming configure supports it). I think that is fine.
For the avoidance of any doubt,
too. So I will push this now.
Thanks,
Ian.