From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 82C1E72FA3 for ; Mon, 27 Mar 2017 13:31:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.15.2/8.15.2/Debian-3) with ESMTP id v2RDVTeq008668; Mon, 27 Mar 2017 14:31:29 +0100 Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kW9qMB_VX0uC; Mon, 27 Mar 2017 14:31:29 +0100 (BST) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id v2RDVPQF008663 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 27 Mar 2017 14:31:27 +0100 Message-ID: <1490621485.13980.263.camel@linuxfoundation.org> From: Richard Purdie To: "Robert P. J. Day" , OE Core mailing list Date: Mon, 27 Mar 2017 14:31:25 +0100 In-Reply-To: References: X-Mailer: Evolution 3.18.5.2-0ubuntu3.1 Mime-Version: 1.0 Subject: Re: [PATCH] classes: Replace "if test" file tests with POSIX file tests X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Mar 2017 13:31:38 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit On Sat, 2017-03-25 at 14:03 -0400, Robert P. J. Day wrote: > In entire meta/classes/ directory, replace shell tests of the form > "if test -? ..." with POSIX tests of the form "if [ -? ... > > Signed-off-by: Robert P. J. Day > > --- > >   as i cannot abide those silly "if test" constructs, i zipped > through > and changed them to POSIX form. is there any objection to this kind > of > cleanup? next up ... all those "x${VAR} = x" tests ... I've merged most of this. There were pieces of the diff that simply didn't apply so I skipped them. The reason I've taken what applied is that this is very expensive for us to test right now and I made the most of the testing time I had on the weekend. The issue is changes to the core classes rebuild everything so we can't reuse sstate and the tests are much slower. We're running late with M3 rc2 but just about to build it and I thought it was worth getting some of this in rather none at all. Please do figure out the remaining pieces and send them and we may or may not tweak the remaining bits in M4. Cheers, Richard