[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v6 07/20] osstest: introduce resource_shared_mark_ready
That allows marking a host as ready to be shared. Replace the current caller that open-codes it. Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- Changes since v4: - New in this version. --- Osstest/TestSupport.pm | 9 ++++++++- ts-xen-build-prep | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 66790575..77585562 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -133,7 +133,7 @@ BEGIN { guest_editconfig_nocd host_install_postboot_complete target_core_dump_setup - sha256file + sha256file resource_shared_mark_ready ); %EXPORT_TAGS = ( ); @@ -2802,4 +2802,11 @@ sub sha256file ($;$) { return $truncate ? substr($digest, 0, $truncate) : $digest; } +sub resource_shared_mark_ready($$) { + my ($ho,$resource) = @_; + + $mjobdb->jobdb_resource_shared_mark_ready($ho->{Ident}, $ho->{Name}, + $resource); +} + 1; diff --git a/ts-xen-build-prep b/ts-xen-build-prep index 37736b7f..2e9ae6ff 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}); + +resource_shared_mark_ready($ho, "build-".$ho->{Suite}."-".$r{arch}); -- 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 |