diff options
| author | Ross Burton <ross.burton@intel.com> | 2017-11-22 15:56:54 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-02 11:25:32 +0000 |
| commit | 6436ffbb0236964f47fa2301feb1a7465e16aaff (patch) | |
| tree | e32e76c40a68118e4d0e022cf00315205f7523e5 /meta/lib/oeqa/utils | |
| parent | 6ef494c13b99919e086cac0fc9927189b9d48510 (diff) | |
| download | poky-6436ffbb0236964f47fa2301feb1a7465e16aaff.tar.gz | |
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.
(From OE-Core rev: b5837f62c8af94d134cf2160afdfb9e08b3418d1)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils')
| -rw-r--r-- | meta/lib/oeqa/utils/commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index 0bb90028dc..cad0bea0be 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py | |||
| @@ -227,7 +227,7 @@ def get_bb_vars(variables=None, target=None, postconfig=None): | |||
| 227 | bbenv = get_bb_env(target, postconfig=postconfig) | 227 | bbenv = get_bb_env(target, postconfig=postconfig) |
| 228 | 228 | ||
| 229 | if variables is not None: | 229 | if variables is not None: |
| 230 | variables = variables.copy() | 230 | variables = list(variables) |
| 231 | var_re = re.compile(r'^(export )?(?P<var>\w+(_.*)?)="(?P<value>.*)"$') | 231 | var_re = re.compile(r'^(export )?(?P<var>\w+(_.*)?)="(?P<value>.*)"$') |
| 232 | unset_re = re.compile(r'^unset (?P<var>\w+)$') | 232 | unset_re = re.compile(r'^unset (?P<var>\w+)$') |
| 233 | lastline = None | 233 | lastline = None |
