summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-08-14 21:39:48 -0400
committerScott Moser <smoser@ubuntu.com>2013-08-14 21:39:48 -0400
commitc09cb99dbee54745f06583d9ff0ea4b91e8b087e (patch)
tree8dde44d0ea6a6cdbdffba59af3575fcf4e0a7663 /tests
parentdbb2dc51cd351d05d4fd3b74133074877bd647f8 (diff)
parentcc0b78533dd1f863901119c420f5779a66396d27 (diff)
downloadvyos-cloud-init-c09cb99dbee54745f06583d9ff0ea4b91e8b087e.tar.gz
vyos-cloud-init-c09cb99dbee54745f06583d9ff0ea4b91e8b087e.zip
cc_growpart: prefer growpart over parted 'resizepart'
the resizepart code was not functional. We will re-favor it later under bug 1212492. For now, we'll just favor the 'growpart' resizer. Both will be found in Ubuntu cloud images. LP: #1212444
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_handler/test_handler_growpart.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unittests/test_handler/test_handler_growpart.py b/tests/unittests/test_handler/test_handler_growpart.py
index b1b872b0..c0497e08 100644
--- a/tests/unittests/test_handler/test_handler_growpart.py
+++ b/tests/unittests/test_handler/test_handler_growpart.py
@@ -9,6 +9,7 @@ import errno
import logging
import os
import re
+import unittest
# growpart:
# mode: auto # off, on, auto, 'growpart', 'parted'
@@ -121,6 +122,7 @@ class TestConfig(MockerTestCase):
# Order must be correct
self.mocker.order()
+ @unittest.skip("until LP: #1212444 fixed")
def test_no_resizers_auto_is_fine(self):
subp = self.mocker.replace(util.subp, passthrough=False)
subp(['parted', '--help'], env={'LANG': 'C'})
@@ -142,6 +144,7 @@ class TestConfig(MockerTestCase):
self.assertRaises(ValueError, self.handle, self.name, config,
self.cloud_init, self.log, self.args)
+ @unittest.skip("until LP: #1212444 fixed")
def test_mode_auto_prefers_parted(self):
subp = self.mocker.replace(util.subp, passthrough=False)
subp(['parted', '--help'], env={'LANG': 'C'})