[oe-commits] Richard Purdie : oeqa/utils/dump: Handle empty commandlist gracefully
git at git.openembedded.org
git at git.openembedded.org
Sun Aug 30 22:25:23 UTC 2015
Module: openembedded-core.git
Branch: master
Commit: e6903e9ef856d98258d81587bf85199cb7dbdca4
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=e6903e9ef856d98258d81587bf85199cb7dbdca4
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Sun Aug 30 23:24:07 2015 +0100
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 at linuxfoundation.org>
---
meta/lib/oeqa/utils/dump.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/lib/oeqa/utils/dump.py b/meta/lib/oeqa/utils/dump.py
index a76aede..e71e1cd 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] == '#':
More information about the Openembedded-commits
mailing list