summaryrefslogtreecommitdiffstats
path: root/support/testing/infra/__init__.py
diff options
context:
space:
mode:
authorArnout Vandecappelle <arnout@mind.be>2017-07-10 01:21:19 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-10 17:46:22 +0200
commit73e7bcdd87f72fb186c7f9bba11a44f93cf8c1a6 (patch)
tree73c27f4fb6154b3b85bd8caf4bcfd57c63e54797 /support/testing/infra/__init__.py
parent2a47bd37b59403f044920f090fe2ea21bb9380f4 (diff)
downloadbuildroot-73e7bcdd87f72fb186c7f9bba11a44f93cf8c1a6.tar.gz
buildroot-73e7bcdd87f72fb186c7f9bba11a44f93cf8c1a6.zip
support/testing: strip /usr/ part from HOST_DIR
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/testing/infra/__init__.py')
-rw-r--r--support/testing/infra/__init__.py4
1 files 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: (.*)\]$")
OpenPOWER on IntegriCloud