From: Ian Jackson Subject: [OSSTEST PATCH 19/24] Osstest/Testsupport.pm: change target's default kernkind to 'pvops' Date: Fri, 13 Nov 2015 12:03:47 +0000 Message-ID: <1447416232-12699-20-git-send-email-ian.jackson@eu.citrix.com> References: <1447416232-12699-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZxD5J-0001PQ-Qb for xen-devel@lists.xenproject.org; Fri, 13 Nov 2015 12:04:05 +0000 In-Reply-To: <1447416232-12699-1-git-send-email-ian.jackson@eu.citrix.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.xenproject.org Cc: Robert Ho , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org This is safe only if no existing flights would be affected. (That is, the meaning of no existing sets of runvars would be changed.) To check whether this would make any difference I did some database searches. Since any time target_kernkind_check is called it sets a corresponding `console' runvar, I can search for `console' without a corresponding `kernkind'. I ran this query: select * from (select *, (select name from runvars r2 where r2.flight=r1.flight and r2.job=r1.job and r2.name= replace(r1.name,'console','kernkind')) kk from runvars r1 where r1.name like '%console') iq where kk is null order by flight desc; and it found nothing since flight 7682. So I think we can change the default. Signed-off-by: Ian Jackson Signed-off-by: Robert Ho Tested-by: Robert Ho Acked-by: Ian Campbell --- v15: New patch --- Osstest/TestSupport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index b507ada..cb496d2 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -2065,7 +2065,7 @@ sub target_var ($$) { sub target_kernkind_check ($) { my ($gho) = @_; my $pfx= target_var_prefix($gho); - my $kernkind= $r{$pfx."kernkind"}; + my $kernkind= $r{$pfx."kernkind"} // 'pvops'; my $isguest= exists $gho->{Guest}; if ($kernkind eq 'pvops') { store_runvar($pfx."rootdev", 'xvda') if $isguest; -- 1.7.10.4