From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH OSSTEST v3 01/13] toolstack: save / restore check Date: Thu, 23 Jul 2015 17:16:45 +0100 Message-ID: <1437668205.24746.20.camel@citrix.com> References: <1437560015-4999-1-git-send-email-wei.liu2@citrix.com> <1437560015-4999-2-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.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZIJPJ-0007NQ-OV for xen-devel@lists.xenproject.org; Thu, 23 Jul 2015 16:31:41 +0000 In-Reply-To: <1437560015-4999-2-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 , Xen-devel Cc: ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On Wed, 2015-07-22 at 11:13 +0100, Wei Liu wrote: > +++ b/Osstest/Toolstack/libvirt.pm > [...] > +sub saverestore_check ($) { > + my ($self) = @_; > + return check_for_command($self, "save"); I just noticed that in a later patch you parse the capabilities xml to check for migration support. Is save/restore reflected there too? Parsing structured output from a command designed to produce machine readable output out to be preferred to parsing help output if possible. Ian.