summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/dump.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/utils/dump.py')
-rw-r--r--meta/lib/oeqa/utils/dump.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/dump.py b/meta/lib/oeqa/utils/dump.py
index 4ae871c657..3f31e206a5 100644
--- a/meta/lib/oeqa/utils/dump.py
+++ b/meta/lib/oeqa/utils/dump.py
@@ -16,9 +16,18 @@ class BaseDumper(object):
16 16
17 def __init__(self, cmds, parent_dir): 17 def __init__(self, cmds, parent_dir):
18 self.cmds = [] 18 self.cmds = []
19 self.parent_dir = parent_dir 19 # Some testing doesn't inherit testimage, so it is needed
20 # to set some defaults.
21 self.parent_dir = parent_dir or "/tmp/oe-saved-tests"
22 dft_cmds = """ top -bn1
23 ps -ef
24 free
25 df
26 memstat
27 dmesg
28 netstat -an"""
20 if not cmds: 29 if not cmds:
21 return 30 cmds = dft_cmds
22 for cmd in cmds.split('\n'): 31 for cmd in cmds.split('\n'):
23 cmd = cmd.lstrip() 32 cmd = cmd.lstrip()
24 if not cmd or cmd[0] == '#': 33 if not cmd or cmd[0] == '#':