From: Ian Jackson Subject: Re: [PATCH 1/2] TestSupport.pm: introduce host_get_free_memory Date: Mon, 14 Apr 2014 15:56:40 +0100 Message-ID: <21323.63272.884975.997315@mariner.uk.xensource.com> References: <1397474223-24387-1-git-send-email-wei.liu2@citrix.com> <1397474223-24387-2-git-send-email-wei.liu2@citrix.com> <21323.62521.795799.870600@mariner.uk.xensource.com> <20140414144919.GA3635@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140414144919.GA3635@zion.uk.xensource.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: ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Wei Liu writes ("Re: [PATCH 1/2] TestSupport.pm: introduce host_get_free_memory"): > On Mon, Apr 14, 2014 at 03:44:09PM +0100, Ian Jackson wrote: > > Also, did you test this ? target_cmd_root doesn't return you the > > output. > > I tested with a dummy ts- script (it's in fact ts-debian-hvm-install > with most operations removed) it did print out the value. I think if you use target_cmd_root, the stdout from the command ends up on the stdout from the ts-* script (ie, in production, in the step transcript logfile). Is that perhaps what you saw ? > If it's not the right function to use, what do you suggeust? I think you want target_cmd_output_root. Ian.