diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-03-05 18:32:24 +0000 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-03-05 18:32:24 +0000 |
commit | 00416dd5cd8f0fb507f64a7f0035fbe706c3f279 (patch) | |
tree | b3889b0e5d29355be632a118af41026e1fdefdbc /tests/unittests | |
parent | 34a76e2be8a3eb4f8490183f12a67a01276575ff (diff) | |
download | vyos-cloud-init-00416dd5cd8f0fb507f64a7f0035fbe706c3f279.tar.gz vyos-cloud-init-00416dd5cd8f0fb507f64a7f0035fbe706c3f279.zip |
remove 'log' passing. call growpart with --dry-run first.
growrun --dry-run will exit 1 if it wouldn't do anything.
so call it, check for '1' and if no change, then just return.
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_handler/test_handler_growpart.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unittests/test_handler/test_handler_growpart.py b/tests/unittests/test_handler/test_handler_growpart.py index 9a033d6b..3cf3efb7 100644 --- a/tests/unittests/test_handler/test_handler_growpart.py +++ b/tests/unittests/test_handler/test_handler_growpart.py @@ -163,7 +163,7 @@ class TestConfig(MockerTestCase): passthrough=False) factory("auto") self.mocker.result(myresizer) - rsdevs(myresizer, ["/"], self.log) + rsdevs(myresizer, ["/"]) self.mocker.result(["/"]) self.mocker.replay() @@ -215,8 +215,7 @@ class TestResize(MockerTestCase): cc_growpart.device_part_info = simple_device_part_info os.stat = mystat - resized = cc_growpart.resize_devices(myresizer(), devs + enoent, - self.log) + resized = cc_growpart.resize_devices(myresizer(), devs + enoent) self.assertEqual(devs, resized) self.assertEqual(resize_calls, |