diff options
Diffstat (limited to 'scripts/test-remote-image')
-rwxr-xr-x | scripts/test-remote-image | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/test-remote-image b/scripts/test-remote-image index 6da66724b9..7d02a84806 100755 --- a/scripts/test-remote-image +++ b/scripts/test-remote-image | |||
@@ -136,7 +136,7 @@ class AutoTargetProfile(BaseTargetProfile): | |||
136 | self.set_manifest_file() | 136 | self.set_manifest_file() |
137 | self.set_extra_download_files() | 137 | self.set_extra_download_files() |
138 | 138 | ||
139 | 139 | # Get the controller object that will be used by bitbake. | |
140 | def get_controller(self): | 140 | def get_controller(self): |
141 | from oeqa.controllers.testtargetloader import TestTargetLoader | 141 | from oeqa.controllers.testtargetloader import TestTargetLoader |
142 | 142 | ||
@@ -158,8 +158,13 @@ class AutoTargetProfile(BaseTargetProfile): | |||
158 | 158 | ||
159 | def set_rootfs_file(self): | 159 | def set_rootfs_file(self): |
160 | image_fstypes = get_bb_var('IMAGE_FSTYPES').split(' ') | 160 | image_fstypes = get_bb_var('IMAGE_FSTYPES').split(' ') |
161 | fstype = self.controller.get_image_fstype(d=None, image_fstypes=image_fstypes) | 161 | # Get a matching value between target's IMAGE_FSTYPES and the image fstypes suppoerted by the target controller. |
162 | self.rootfs_file = self.image_name + '.' + fstype | 162 | fstype = self.controller.match_image_fstype(d=None, image_fstypes=image_fstypes) |
163 | if fstype: | ||
164 | self.rootfs_file = self.image_name + '.' + fstype | ||
165 | else: | ||
166 | log.error("Could not get a compatible image fstype. Check that IMAGE_FSTYPES and the target controller's supported_image_fstypes fileds have common values.") | ||
167 | sys.exit(1) | ||
163 | 168 | ||
164 | def set_manifest_file(self): | 169 | def set_manifest_file(self): |
165 | self.manifest_file = self.image_name + ".manifest" | 170 | self.manifest_file = self.image_name + ".manifest" |