=== modified file 'linaro_image_tools/media_create/tests/test_media_create.py'
@@ -178,7 +178,7 @@
fixture = self.useFixture(MockCmdRunnerPopenFixture())
install_package_providing('mkfs.vfat')
self.assertEqual(
- ['%s apt-get install dosfstools' % sudo_args],
+ ['%s apt-get --yes install dosfstools' % sudo_args],
fixture.mock.commands_executed)
def test_not_found_package(self):
=== modified file 'linaro_image_tools/media_create/utils.py'
@@ -48,7 +48,8 @@
package, _ = packages[0]
print ("Installing required command %s from package %s"
% (command, package))
- cmd_runner.run(['apt-get', 'install', package], as_root=True).wait()
+ cmd_runner.run(
+ ['apt-get', '--yes', 'install', package], as_root=True).wait()
def ensure_command(command):