summaryrefslogtreecommitdiff
path: root/meta/lib/oeqa/utils/dump.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-30 23:24:07 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-30 23:24:10 +0100
commite6903e9ef856d98258d81587bf85199cb7dbdca4 (patch)
treec6bd7cc940bf28d574726f8b8bee7c1d5ea9aed0 /meta/lib/oeqa/utils/dump.py
parent3658a3278a3752d4aa72cdff4aa8c9f5e1d90f93 (diff)
downloadopenembedded-core-e6903e9ef856d98258d81587bf85199cb7dbdca4.tar.gz
openembedded-core-e6903e9ef856d98258d81587bf85199cb7dbdca4.tar.bz2
openembedded-core-e6903e9ef856d98258d81587bf85199cb7dbdca4.zip
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/oeqa/utils/dump.py')
-rw-r--r--meta/lib/oeqa/utils/dump.py2
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] == '#':