diff options
author | 2015-08-30 23:24:07 +0100 | |
---|---|---|
committer | 2015-08-30 23:24:10 +0100 | |
commit | e6903e9ef856d98258d81587bf85199cb7dbdca4 (patch) | |
tree | c6bd7cc940bf28d574726f8b8bee7c1d5ea9aed0 /meta/lib | |
parent | 3658a3278a3752d4aa72cdff4aa8c9f5e1d90f93 (diff) | |
download | openembedded-core-contrib-e6903e9ef856d98258d81587bf85199cb7dbdca4.tar.gz |
oeqa/utils/dump: Handle empty commandlist gracefully
If the commandlist isn't available, the code currently gives a backtrace.
At least stop doing that and return more gracefully.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/utils/dump.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/dump.py b/meta/lib/oeqa/utils/dump.py index a76aede8c3..e71e1cd341 100644 --- a/meta/lib/oeqa/utils/dump.py +++ b/meta/lib/oeqa/utils/dump.py @@ -14,6 +14,8 @@ class BaseDumper(object): def __init__(self, d, cmds): self.cmds = [] self.parent_dir = d.getVar("TESTIMAGE_DUMP_DIR", True) + if not cmds: + return for cmd in cmds.split('\n'): cmd = cmd.lstrip() if not cmd or cmd[0] == '#': |