def test_CheckAbOtaImages_imageExistsUnderRadio(self): """Tests the case with some image under RADIO/.""" images, _ = self._create_images(['system', 'vendor'], 'IMAGES') radio_path = os.path.join(OPTIONS.input_tmp, 'RADIO') if not os.path.exists(radio_path): os.mkdir(radio_path) with open(os.path.join(radio_path, 'modem.img'), 'wb') as image_fp: image_fp.write('modem'.encode()) CheckAbOtaImages(None, images + ['modem'])
def test_CheckAbOtaImages_imageExistsUnderImages(self): """Tests the case with existing images under IMAGES/.""" images, _ = self._create_images(['aboot', 'xbl'], 'IMAGES') CheckAbOtaImages(None, images)