From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: [PATCH OSSTEST v2 05/13] sg-run-job: remove save/restore dependency on local migration support Date: Sun, 12 Jul 2015 17:20:28 +0100 Message-ID: <1436718036-7985-6-git-send-email-wei.liu2@citrix.com> References: <1436718036-7985-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZEJze-0002VY-Co for xen-devel@lists.xenproject.org; Sun, 12 Jul 2015 16:20:42 +0000 In-Reply-To: <1436718036-7985-1-git-send-email-wei.liu2@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 Cc: ian.jackson@eu.citrix.com, Wei Liu , ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Since we've introduced different checks for save / restore and local migration, it's possible to run save / restore tests without running local migration tests. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson --- sg-run-job | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/sg-run-job b/sg-run-job index 16fcfc1..172214e 100755 --- a/sg-run-job +++ b/sg-run-job @@ -302,13 +302,20 @@ proc run-job/test-pair {} { proc test-guest-migr {g} { set to_reap [spawn-ts . = ts-migrate-support-check + host $g 1] set can_migrate [reap-ts $to_reap] - if {!$can_migrate} return + set to_reap [spawn-ts . = ts-saverestore-support-check + host] + set can_saverestore [reap-ts $to_reap] foreach iteration {{} .2} { - run-ts . =$iteration ts-guest-saverestore + host $g - run-ts . =$iteration ts-guest-localmigrate + host $g + if {$can_saverestore} { + run-ts . =$iteration ts-guest-saverestore + host $g + } + if {$can_migrate} { + run-ts . =$iteration ts-guest-localmigrate + host $g + } + } + if {$can_migrate} { + run-ts . = ts-guest-localmigrate x10 + host $g } - run-ts . = ts-guest-localmigrate x10 + host $g } proc test-guest {g} { -- 1.9.1