]> xenbits.xensource.com Git - people/liuw/osstest.git/commit
mfi-common: always add host suite to hostos_runvars
authorIan Campbell <ian.campbell@citrix.com>
Mon, 18 Jan 2016 14:28:49 +0000 (14:28 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 17 Feb 2016 11:16:24 +0000 (11:16 +0000)
commitf70ad8d2e18d67df92e2af6f13fa34619c4487f5
treebe2f1d78e8912d2b4a4edb7a529dc2c65dfd644c
parent0e4bb2220207091dff7daf3dc8df427a990684c5
mfi-common: always add host suite to hostos_runvars

This avoids situations where production-config* has changed
DebianSuite but the bisector is still picking up baselines etc from
before the change and reusing their runvars (without suite) with an
inconsistent config.

Switch selecthost() to use target_var when querying the suite. This
means it will check the "{ident}_suite" runvar first as before but
fallback to just looking at the "all_host_suite" runvar. We also
change the existing host_suite to all_host_suite in mfi-commong so
that test_matrix_iterate() needn't worry about ident=host vs
=src_host/dst_host etc (of course this can still be overridden if
desired by using src_host_suite etc, but nowhere does.

Other uses of $c{DebianSuite} have been abolished already.

Note that "$suite != $defsuite" is not true for any current production
invocation of osstest. If this was ever true then we would have set
the host_suite runvar, whereas now we always set all_host_suite.
However any old flights with host_suite would still be interpretted
the same. Note also that the "$suite != $defsuite" case was previously
broken for the -pair tests since the host idents there are 'src_host'
and 'dst_host', so the previous code would have fallen back to
$c{DebianSuite} without looking at the host_suite runvar.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/TestSupport.pm
mfi-common