diff options
author | Maciej Borzecki <maciej.borzecki@rndity.com> | 2017-03-13 11:19:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-14 14:39:34 +0000 |
commit | 477805b913a6c4b4b630e42f08cd9e59f1e4e254 (patch) | |
tree | 495d0846eb3919e3d489ffb621e79e7da345a249 /meta/classes/multilib_header.bbclass | |
parent | 13a5c3dac4b5b0ccb4c5dfebf79b468acd8e1983 (diff) | |
download | openembedded-core-477805b913a6c4b4b630e42f08cd9e59f1e4e254.tar.gz openembedded-core-477805b913a6c4b4b630e42f08cd9e59f1e4e254.tar.bz2 openembedded-core-477805b913a6c4b4b630e42f08cd9e59f1e4e254.zip |
wic: selftest: account for occasional newline in debugfs file names
Debugfs output may contain a newline in file names in 'ls -p' output. Make sure
that output is correctly split into lines by matching '/\n' and newlines are
removed from file names.
Fixes the following error appearing in AB tests:
Traceback (most recent call last):
File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py", line 388, in test_exclude_path
files = [line.split('/')[5] for line in res.output.split('\n')]
File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/wic.py", line 388, in <listcomp>
files = [line.split('/')[5] for line in res.output.split('\n')]
IndexError: list index out of range
Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/multilib_header.bbclass')
0 files changed, 0 insertions, 0 deletions