]> code.ossystems Code Review - openembedded-core.git/commit
toaster.bbclass: Fix ValueError
authorEd Bartosh <ed.bartosh@linux.intel.com>
Mon, 27 Jul 2015 10:55:52 +0000 (13:55 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Jul 2015 11:26:57 +0000 (12:26 +0100)
commit03d01393d14b7b20dcb40ff89b1628883fd3b545
tree12686718f080bca0dc7dad1cf37de91fb4e24b31
parentf6e47aa9b12f9ab61530c40e0343f451699d9077
toaster.bbclass: Fix ValueError

Running "bitbake xxx:do_unpack" resulted in exception at the
BuildCompleted event from toaster.

The reason for this exception was usage of ':' as a field
delimiter in toasterstatlist file. As target can optionally
contain ':<task>' suffix it caused split(':') to throw exception:

File "toaster_collect_task_stats(e)", line 71, in
toaster_collect_task_stats(e=<bb.event.BuildCompleted object at
0x7f8434deed50>)
ValueError: too many values to unpack

Fixed by changing delimiter ':' -> '::'

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/toaster.bbclass