diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-12-22 17:03:19 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-28 09:25:14 +0000 |
commit | 9da93087810a991b356f0d84ae9edd8919f22fda (patch) | |
tree | 630d1e7af21bdfbc9c7c9f5b511952913f4264c8 /meta/lib/oeqa | |
parent | c2435b11812b32d967253794a7fff59bab2f49df (diff) | |
download | poky-9da93087810a991b356f0d84ae9edd8919f22fda.tar.gz |
oe-selftest: devtool: add more explicit check for ls output
test_devtool_deploy_target is failing on the Yocto Project autobuilder
apparently when it attempts to cut out some fields from the list. It
doesn't fail here and I can't see what the problem lines are, so add a
check for lines with too few fields so we can get a look at them next
time it fails.
(From OE-Core rev: 2b19c74332c3899c84708946d749f88c4416cf73)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/devtool.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py index 41e1b4bf51..955379bad5 100644 --- a/meta/lib/oeqa/selftest/devtool.py +++ b/meta/lib/oeqa/selftest/devtool.py | |||
@@ -93,6 +93,8 @@ class DevtoolBase(oeSelfTest): | |||
93 | filelist = [] | 93 | filelist = [] |
94 | for line in output.splitlines(): | 94 | for line in output.splitlines(): |
95 | splitline = line.split() | 95 | splitline = line.split() |
96 | if len(splitline) < 8: | ||
97 | self.fail('_process_ls_output: invalid output line: %s' % line) | ||
96 | # Remove trailing . on perms | 98 | # Remove trailing . on perms |
97 | splitline[0] = splitline[0].rstrip('.') | 99 | splitline[0] = splitline[0].rstrip('.') |
98 | # Remove leading . on paths | 100 | # Remove leading . on paths |