344
344
os.path.join(output_dir, recovery_img)))
346
346
@mock.patch("cdimage.osextras.fetch")
347
def test_ubuntu_desktop_next(self, mock_fetch):
348
def fetch_side_effect(config, source, target):
349
if (target.endswith(".manifest") or
350
target.endswith(".rootfs.tar.gz")):
353
raise osextras.FetchError
355
mock_fetch.side_effect = fetch_side_effect
356
self.config["PROJECT"] = "ubuntu-desktop-next"
357
self.config["DIST"] = "utopic"
358
self.config["IMAGE_TYPE"] = "daily"
359
self.config["ARCHES"] = "i386"
360
self.capture_logging()
361
build_livecd_base(self.config)
362
self.assertLogEqual([
363
"===== Downloading live filesystem images =====",
366
output_dir = os.path.join(
367
self.temp_dir, "scratch", "ubuntu-desktop-next", "utopic", "daily",
369
self.assertTrue(os.path.isdir(output_dir))
370
self.assertCountEqual([
372
"i386.rootfs.tar.gz",
373
], os.listdir(output_dir))
375
@mock.patch("cdimage.osextras.fetch")
376
347
def test_ubuntu_desktop_next_system_image(self, mock_fetch):
377
348
def fetch_side_effect(config, source, target):
378
349
if (target.endswith(".manifest") or