summaryrefslogtreecommitdiff
path: root/tests/unittests
diff options
context:
space:
mode:
authorHarm Weites <harm@weites.com>2018-05-01 15:38:51 -0600
committerChad Smith <chad.smith@canonical.com>2018-05-01 15:38:51 -0600
commitfed07fc6cddebcbc3e744926509c362d9e200aeb (patch)
tree6d07e58b10c508fe423ac70caa66c55bb1a6e1c8 /tests/unittests
parent26fbb1a0ce89451edad83a47054cacb6dd7b6dcc (diff)
downloadvyos-cloud-init-fed07fc6cddebcbc3e744926509c362d9e200aeb.tar.gz
vyos-cloud-init-fed07fc6cddebcbc3e744926509c362d9e200aeb.zip
FreeBSD: Invoke growfs on ufs filesystems such that it does not prompt.
By default, FreeBSD's growfs runs interactively asking a question which can be mitigated using the '-y' command line option. The fix here is simply to pass -y to growfs to avoid the prompt. LP: #1404745
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/test_handler/test_handler_resizefs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/test_handler/test_handler_resizefs.py b/tests/unittests/test_handler/test_handler_resizefs.py
index 7a7ba1ff..f92175fd 100644
--- a/tests/unittests/test_handler/test_handler_resizefs.py
+++ b/tests/unittests/test_handler/test_handler_resizefs.py
@@ -147,7 +147,7 @@ class TestResizefs(CiTestCase):
def test_resize_ufs_cmd_return(self):
mount_point = '/'
devpth = '/dev/sda2'
- self.assertEqual(('growfs', devpth),
+ self.assertEqual(('growfs', '-y', devpth),
_resize_ufs(mount_point, devpth))
@mock.patch('cloudinit.util.get_mount_info')