[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 04/16] osstest: introduce host_shared_mark_ready
That allows marking a host as ready to be shared. Replace the current callers that open-code it. Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> --- Changes since v13: - s/resource_shared_mark_ready/host_shared_mark_ready/. - First argument of jobdb_resource_shared_mark_ready must be 'host'. Changes since v4: - New in this version. --- Osstest/TestSupport.pm | 9 ++++++++- ts-freebsd-host-install | 4 ++-- ts-xen-build-prep | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index c7cc8108..f28c8e4a 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -134,7 +134,7 @@ BEGIN { guest_editconfig_nocd host_install_postboot_complete target_core_dump_setup - sha256file + sha256file host_shared_mark_ready ); %EXPORT_TAGS = ( ); @@ -2815,4 +2815,11 @@ sub sha256file ($;$) { return $truncate ? substr($digest, 0, $truncate) : $digest; } +sub host_shared_mark_ready($$) { + my ($ho,$sharetype) = @_; + + $mjobdb->jobdb_resource_shared_mark_ready('host', $ho->{Name}, + $sharetype); +} + 1; diff --git a/ts-freebsd-host-install b/ts-freebsd-host-install index bfc693a1..735f7ff0 100755 --- a/ts-freebsd-host-install +++ b/ts-freebsd-host-install @@ -279,5 +279,5 @@ setup_netboot_local($ho); # Proceed with the install install(); -resource_shared_mark_ready($ho, "build-freebsd-". - sha256file("$path_prefix/install.img", 16)); +host_shared_mark_ready($ho, "build-freebsd-". + sha256file("$path_prefix/install.img", 16)); diff --git a/ts-xen-build-prep b/ts-xen-build-prep index 3e98364a..22a3ce66 100755 --- a/ts-xen-build-prep +++ b/ts-xen-build-prep @@ -273,5 +273,5 @@ if (!$ho->{Flags}{'no-reinstall'}) { ccache_setup(); gitcache_setup(); } -$mjobdb->jobdb_resource_shared_mark_ready - ($ho->{Ident}, $ho->{Name}, "build-".$ho->{Suite}."-".$r{arch}); + +host_shared_mark_ready($ho, "build-".$ho->{Suite}."-".$r{arch}); -- 2.13.5 (Apple Git-94) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |