Message ID | 20170728152637.20301-7-roger.pau@citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Roger Pau Monne writes ("[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. Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
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) = @_;
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@citrix.com> --- Osstest/TestSupport.pm | 7 +++++++ 1 file changed, 7 insertions(+)