summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/targetcontrol.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/targetcontrol.py')
-rw-r--r--meta/lib/oeqa/targetcontrol.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py
index 1464bf4047..cc582dd1ad 100644
--- a/meta/lib/oeqa/targetcontrol.py
+++ b/meta/lib/oeqa/targetcontrol.py
@@ -77,14 +77,21 @@ class BaseTarget(object):
77 return None 77 return None
78 78
79 @classmethod 79 @classmethod
80 def get_image_fstype(self, d, image_fstypes=None): 80 def match_image_fstype(self, d, image_fstypes=None):
81 if not image_fstypes: 81 if not image_fstypes:
82 image_fstypes = d.getVar('IMAGE_FSTYPES', True).split(' ') 82 image_fstypes = d.getVar('IMAGE_FSTYPES', True).split(' ')
83 possible_image_fstypes = [fstype for fstype in self.supported_image_fstypes if fstype in image_fstypes] 83 possible_image_fstypes = [fstype for fstype in self.supported_image_fstypes if fstype in image_fstypes]
84 if possible_image_fstypes: 84 if possible_image_fstypes:
85 return possible_image_fstypes[0] 85 return possible_image_fstypes[0]
86 else: 86 else:
87 bb.fatal("no possible image_fstype could not be determined. IMAGE_FSTYPES=\"%s\" and supported_image_fstypes=\"%s\": " % (', '.join(map(str, image_fstypes)), ', '.join(map(str, self.supported_image_fstypes)))) 87 return None
88
89 def get_image_fstype(self, d):
90 image_fstype = self.match_image_fstype(d)
91 if image_fstype:
92 return image_fstype
93 else:
94 bb.fatal("IMAGE_FSTYPES should contain a Target Controller supported image fstype: %s " % ', '.join(map(str, self.supported_image_fstypes)))
88 95
89 def restart(self, params=None): 96 def restart(self, params=None):
90 self.stop() 97 self.stop()