fix bug lp:1009041,add option "-F" to make mkfs non-interactive.

Change-Id: Ic8be1657dbad0cd91fdb5176f17f7b1ba034c2e0
This commit is contained in:
yaguang tang
2012-06-06 00:26:17 +08:00
parent 61e43d1512
commit 66570ca79e

View File

@@ -2311,7 +2311,7 @@ disk size: 4.4M''', ''))
def test_mkfs(self):
self.mox.StubOutWithMock(utils, 'execute')
utils.execute('mkfs', '-t', 'ext4', '/my/block/dev')
utils.execute('mkfs', '-t', 'ext4', '-F', '/my/block/dev')
utils.execute('mkswap', '/my/swap/block/dev')
self.mox.ReplayAll()