[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST 06/11] 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> --- Osstest/TestSupport.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index ff0de14b..6939c03f 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 @@ -1212,6 +1213,12 @@ END } } +sub hostprop_putative_record ($$$) { + my ($ho, $prop, $val) = @_; + + store_runvar("hostprop_$ho->{Name}_$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 |