From patchwork Sun Jul 9 23:21:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnout Vandecappelle X-Patchwork-Id: 785969 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x5PWW1z8Zz9s1h for ; Mon, 10 Jul 2017 09:22:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3DBD684340; Sun, 9 Jul 2017 23:22:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hvj7Axhcc0dU; Sun, 9 Jul 2017 23:22:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6ABA384582; Sun, 9 Jul 2017 23:22:02 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 3C1D91C42AC for ; Sun, 9 Jul 2017 23:21:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3810823A83 for ; Sun, 9 Jul 2017 23:21:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7ZBp4MnP9PLG for ; Sun, 9 Jul 2017 23:21:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exchange.essensium.com (220.77.144.195.ipv4.evonet.be [195.144.77.220]) by silver.osuosl.org (Postfix) with ESMTPS id 03E6A2681C for ; Sun, 9 Jul 2017 23:21:54 +0000 (UTC) Received: from localhost.localdomain (10.3.7.11) by beleexch01.local.ess-mail.com (10.3.7.8) with Microsoft SMTP Server (TLS) id 15.0.847.32; Mon, 10 Jul 2017 01:21:33 +0200 From: "Arnout Vandecappelle (Essensium/Mind)" To: Date: Mon, 10 Jul 2017 01:21:19 +0200 Message-ID: <20170709232123.30120-4-arnout@mind.be> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170709232123.30120-1-arnout@mind.be> References: <20170709232123.30120-1-arnout@mind.be> MIME-Version: 1.0 X-Originating-IP: [10.3.7.11] X-ClientProxiedBy: beleexch01.local.ess-mail.com (10.3.7.8) To beleexch01.local.ess-mail.com (10.3.7.8) Subject: [Buildroot] [PATCH 3/7] support/testing: strip /usr/ part from HOST_DIR X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- support/testing/infra/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/testing/infra/__init__.py b/support/testing/infra/__init__.py index a55ad7fdf5..27e2a2708d 100644 --- a/support/testing/infra/__init__.py +++ b/support/testing/infra/__init__.py @@ -55,7 +55,7 @@ def get_elf_arch_tag(builddir, prefix, fpath, tag): v5TEJ >>> """ - cmd = ["host/usr/bin/{}-readelf".format(prefix), + cmd = ["host/bin/{}-readelf".format(prefix), "-A", os.path.join("target", fpath)] out = subprocess.check_output(cmd, cwd=builddir, env={"LANG": "C"}) regexp = re.compile("^ {}: (.*)$".format(tag)) @@ -80,7 +80,7 @@ def get_elf_prog_interpreter(builddir, prefix, fpath): /lib/ld-linux-armhf.so.3 >>> """ - cmd = ["host/usr/bin/{}-readelf".format(prefix), + cmd = ["host/bin/{}-readelf".format(prefix), "-l", os.path.join("target", fpath)] out = subprocess.check_output(cmd, cwd=builddir, env={"LANG": "C"}) regexp = re.compile("^ *\[Requesting program interpreter: (.*)\]$")