[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST v3 3/8] TestSupport: introduce hostprop_putative_record
This is used to store tentative host properties in the runvars of a job, with the expectation that at some point (ie: at the end of the job) they will be turned into real properties stored in the database. Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- Changes since v2: - Use the following runvar format to store the putative host props: hostprop/$ident/$prop=$val. --- Osstest/TestSupport.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 27b2342c..a5cca391 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -82,6 +82,7 @@ BEGIN { power_state power_cycle power_cycle_sleep serial_fetch_logs set_host_property propname_massage propname_check + hostprop_putative_record get_stashed open_unique_stashfile compress_stashed dir_identify_vcs @@ -1189,6 +1190,12 @@ sub set_host_property ($$$) { $mhostdb->set_property($ho, $prop, $val); } +sub hostprop_putative_record ($$$) { + my ($ho, $prop, $val) = @_; + + store_runvar("hostprop/$ho->{Ident}/$prop", $val); +} + sub get_target_property ($$;$); sub get_target_property ($$;$) { my ($ho, $prop, $defval) = @_; -- 2.11.0 (Apple Git-81) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |