mirror of
https://git.yoctoproject.org/poky
synced 2026-04-28 06:32:34 +02:00
oeqa/runtime: Use libdir to run ptest-runner
In multilib build configs libs can be installed in /usr/lib{32,64,x32}
so use libdir to specify the correct ptest directory along with default
/usr/lib.
[YOCTO #12604]
(From OE-Core rev: e44ca998c27f494466a524d09f751f963ec9be20)
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
792d1ebba9
commit
81b8656f6b
@@ -49,7 +49,11 @@ class PtestRunnerTest(OERuntimeTestCase):
|
||||
ptest_log_dir = '%s.%s' % (ptest_log_dir_link, timestamp)
|
||||
ptest_runner_log = os.path.join(ptest_log_dir, 'ptest-runner.log')
|
||||
|
||||
status, output = self.target.run('ptest-runner', 0)
|
||||
libdir = self.td.get('libdir', '')
|
||||
ptest_dirs = [ '/usr/lib' ]
|
||||
if not libdir in ptest_dirs:
|
||||
ptest_dirs.append(libdir)
|
||||
status, output = self.target.run('ptest-runner -d \"{}\"'.format(' '.join(ptest_dirs)), 0)
|
||||
os.makedirs(ptest_log_dir)
|
||||
with open(ptest_runner_log, 'w') as f:
|
||||
f.write(output)
|
||||
|
||||
Reference in New Issue
Block a user