From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Ho Subject: [OSSTest Nested v12 06/21] Add new function of 'host_install_postboot_complete' Date: Fri, 28 Aug 2015 23:07:55 +0800 Message-ID: <1440774490-16725-7-git-send-email-robert.hu@intel.com> References: <1440774490-16725-1-git-send-email-robert.hu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1440774490-16725-1-git-send-email-robert.hu@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org, robert.hu@intel.com Cc: wei.liu2@citrix.com, Ian.Jackson@eu.citrix.com, ian.campbell@citrix.com, di.zheng@intel.com, gordon.jin@intel.com List-Id: xen-devel@lists.xenproject.org This function is called to add 'osstest-confirm-booted' service in target's start up services. Previously, this was dircetly done by target_cmd_root($ho, "update-rc.d osstest-confirm-booted start 99 2 .") Here wrapper it because more than one place (ts-host-install and ts-nested-setup) will need this, so wrapper it to avoid open code. Signed-off-by: Robert Ho --- Osstest/TestSupport.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index b7963af..f2ec9be 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -115,6 +115,7 @@ BEGIN { iso_gen_flags_basic iso_copy_content_from_image guest_editconfig_nocd + host_install_postboot_complete ); %EXPORT_TAGS = ( ); @@ -2373,4 +2374,9 @@ sub guest_editconfig_nocd ($$) { }); } +sub host_install_postboot_complete ($) { + my ($ho) = @_; + target_cmd_root($ho, "update-rc.d osstest-confirm-booted start 99 2 ."); +} + 1; -- 1.8.3.1