From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH OSSTEST v2 04/13] toolstack: distinguish local and remote migration support Date: Mon, 13 Jul 2015 12:19:29 +0100 Message-ID: <1436786369.7019.101.camel@citrix.com> References: <1436718036-7985-1-git-send-email-wei.liu2@citrix.com> <1436718036-7985-5-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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZEblm-0003IT-Rs for xen-devel@lists.xenproject.org; Mon, 13 Jul 2015 11:19:34 +0000 In-Reply-To: <1436718036-7985-5-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: Wei Liu Cc: Xen-devel , ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Sun, 2015-07-12 at 17:20 +0100, Wei Liu wrote: > @@ -23,5 +23,9 @@ use Osstest::TestSupport; > tsreadconfig(); > > our $ho = selecthost($ARGV[0]); > +# $ARGV[1] is guest name, $ARG[2] indicates whether it is checking for > +# local migration or remote migration > +# Mode should be either 1 ("local") or 0 ("remote") > +our $mode = $ARGV[2]; I think: our ($whhost, $gn, $mode) = @ARGV; our $ho = selecthost($whhost); would be preferable to the first two lines of the comment. > -exit(toolstack($ho)->migrate_check()); > +exit(toolstack($ho)->migrate_check($mode));