From: Ian Jackson Date: Tue, 19 Jul 2016 14:06:16 +0000 (+0100) Subject: mfi-common: Break out set_hostos_runvars X-Git-Tag: openstack-v11~321 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=64d8f673963a42e16c493f07559ba57562c68c73;p=people%2Faperard%2Fosstest.git mfi-common: Break out set_hostos_runvars We are going to want to reuse this. No functional change. (NB shell `local' variables have dynamic rather than lexical scope.) Signed-off-by: Ian Jackson --- diff --git a/mfi-common b/mfi-common index ca1e0dd1..93cc3dab 100644 --- a/mfi-common +++ b/mfi-common @@ -76,6 +76,17 @@ job_create_build () { ./cs-job-create $flight $job $recipe $global_runvars "$@" } +set_hostos_runvars () { + # caller should have done + # local hostos_runvars + # suite=.... + # di_version=.... # perhaps + hostos_runvars="all_host_suite=$suite" + case "$di_version" in + ?*) hostos_runvars+=" all_host_di_version=$di_version" + esac +} + create_build_jobs () { local arch @@ -414,10 +425,7 @@ test_matrix_iterate () { ;; esac - hostos_runvars="all_host_suite=$suite" - case "$di_version" in - ?*) hostos_runvars+=" all_host_di_version=$di_version" - esac + set_hostos_runvars for kern in ''; do