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 F3B5060043 for ; Tue, 18 Aug 2015 15:24:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t7IFOvvA016001 for ; Tue, 18 Aug 2015 16:24:57 +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 FmF833PyBxZ7 for ; Tue, 18 Aug 2015 16:24:56 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t7IFOi0w015970 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 18 Aug 2015 16:24:55 +0100 Message-ID: <1439911484.12105.126.camel@linuxfoundation.org> From: Richard Purdie To: openembedded-core Date: Tue, 18 Aug 2015 16:24:44 +0100 X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Subject: [PATCH] oeqa/targetbuild: Remove bashism 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: Tue, 18 Aug 2015 15:25:01 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Use '.' instead of 'source' so this works with dash as /bin/sh. Signed-off-by: Richard Purdie diff --git a/meta/lib/oeqa/utils/targetbuild.py b/meta/lib/oeqa/utils/targetbuild.py index d499bb1..9d532e7 100644 --- a/meta/lib/oeqa/utils/targetbuild.py +++ b/meta/lib/oeqa/utils/targetbuild.py @@ -132,6 +132,6 @@ class SDKBuildProject(BuildProject): f.write("%s\n" % msg) def _run(self, cmd): - self.log("Running source %s; " % self.sdkenv + cmd) - return subprocess.call("source %s; " % self.sdkenv + cmd, shell=True) + self.log("Running . %s; " % self.sdkenv + cmd) + return subprocess.call(". %s; " % self.sdkenv + cmd, shell=True)