From: Ian Jackson Subject: Re: [PATCH RFC OSSTEST v1 05/12] make-*flight: Abolish $defsuite and $guestdefsuite Date: Tue, 12 Jan 2016 14:18:35 +0000 Message-ID: <22165.2875.744717.28870@mariner.uk.xensource.com> References: <1452263368.29416.39.camel@citrix.com> <1452263399-14094-5-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1452263399-14094-5-git-send-email-ian.campbell@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@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH RFC OSSTEST v1 05/12] make-*flight: Abolish $defsuite and $guestdefsuite"): > Instead have mfi-common set $suite or $guestsuite if it is unset. When > doing so move the use of local to this point, using local at the top > of the function would shadow any attempt to set a global value, while > restricting it only to when setting the default means it doesn't leak. > NB "local" scopes the variable to the containing function, not the > scope of the block where it is written (i.e. the if body in this > case). I'm not really sure this approach is right. If we were to decide that some of the tests resulting from test_matrix_iterate ought to have different suite values, we would have to (re)introduce a layer of indirection. Perhaps it would be better to retain defsuite and defguestsuite; move the copy from those to suite and guestsuite closer to use site; and unconditionally set the runvar ? Ian.