]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/commands: don't break if get_bb_vars is passed a tuple
authorRoss Burton <ross.burton@intel.com>
Wed, 22 Nov 2017 15:56:54 +0000 (15:56 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 2 Dec 2017 11:24:35 +0000 (11:24 +0000)
commitb5837f62c8af94d134cf2160afdfb9e08b3418d1
tree72694c192c9bcbb0bff306eda355c2dc993dd263
parentbf5627ddbe5371eba62f73c33735fb1cf35c2194
oeqa/commands: don't break if get_bb_vars is passed a tuple

get_bb_vars was using variables.copy() to duplicate the list of variables passed
but this function only exists in lists [1,2] and not tuples (1,2).

Instead of throwing an exception if the variables are in a tuple, simply
construct a new list using the passed sequence-like object.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/utils/commands.py