[PATCH 2/2] create_sparse_file in blivet now expects a Size object.

Chris Lumens clumens at redhat.com
Fri Feb 21 15:50:10 UTC 2014


---
 tests/storage/cases/bz1014545.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/storage/cases/bz1014545.py b/tests/storage/cases/bz1014545.py
index e0e5270..b57fa4f 100644
--- a/tests/storage/cases/bz1014545.py
+++ b/tests/storage/cases/bz1014545.py
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 #
-# Copyright (C) 2013  Red Hat, Inc.
+# Copyright (C) 2013-2014  Red Hat, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published
@@ -19,6 +19,7 @@
 
 from . import TestCase, TestCaseComponent
 
+from blivet.size import Size
 from pykickstart.errors import KickstartValueError
 
 class BTRFSOnNonBTRFSComponent(TestCaseComponent):
@@ -26,7 +27,7 @@ class BTRFSOnNonBTRFSComponent(TestCaseComponent):
 
     def __init__(self, *args, **kwargs):
         TestCaseComponent.__init__(self, *args, **kwargs)
-        self.disksToCreate = [("anatest-disk1", 1000)]
+        self.disksToCreate = [("anatest-disk1", Size(spec="1GiB"))]
 
     @property
     def ks(self):
@@ -49,7 +50,7 @@ class VolGroupOnNonPVsComponent(TestCaseComponent):
 
     def __init__(self, *args, **kwargs):
         TestCaseComponent.__init__(self, *args, **kwargs)
-        self.disksToCreate = [("anatest-disk1", 1000)]
+        self.disksToCreate = [("anatest-disk1", Size(spec="1GiB"))]
 
     @property
     def ks(self):
@@ -72,8 +73,8 @@ class RaidOnNonRaidMembersComponent(TestCaseComponent):
 
     def __init__(self, *args, **kwargs):
         TestCaseComponent.__init__(self, *args, **kwargs)
-        self.disksToCreate = [("anatest-disk1", 1000),
-                              ("anatest-disk2", 1000)]
+        self.disksToCreate = [("anatest-disk1", Size(spec="1GiB")),
+                              ("anatest-disk2", Size(spec="1GiB"))]
 
     @property
     def ks(self):
-- 
1.8.3.1



More information about the anaconda-patches mailing list