From: Ian Jackson Subject: Re: [PATCH OSSTEST v2 03/13] osstest migrate support check catch -> variables Date: Tue, 21 Jul 2015 17:32:25 +0100 Message-ID: <21934.29721.210134.63376@mariner.uk.xensource.com> References: <1436718036-7985-1-git-send-email-wei.liu2@citrix.com> <1436718036-7985-4-git-send-email-wei.liu2@citrix.com> <1436786054.7019.99.camel@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 1ZHaTe-0001Xl-CU for xen-devel@lists.xenproject.org; Tue, 21 Jul 2015 16:33:10 +0000 In-Reply-To: <1436786054.7019.99.camel@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: Ian Campbell Cc: Xen-devel , Wei Liu List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH OSSTEST v2 03/13] osstest migrate support check catch -> variables"): > On Sun, 2015-07-12 at 17:20 +0100, Wei Liu wrote: > > @@ -300,7 +300,9 @@ proc run-job/test-pair {} { > > proc test-guest-migr {g} { > > - if {[catch { run-ts . = ts-migrate-support-check + host $g }]} return > > + set to_reap [spawn-ts . = ts-migrate-support-check + host $g] > > Most other uses of spawn-ts use [eval spawn-ts ]. I think those > are just trying to expand a $args into multiple arguments to spawn-ts, > and hence that isn't needed here (because $g is a singleton argument > already). But TBH I don't know... Yes, the effect of the set reap [eval spawn-ts $args] is to expand the list in $args as arguments to spawn-ts. $g is a singleton as you say, not a list. spawn-ts has the same argument convention as run-ts. Ian.