forked from pool/python-parted
- Add patch to tweak features detected in tests (parted changes
from suse): * python-parted-featurestest.patch - Add patch python-parted-parted-binary.patch to run parted full path as user does not see sbin binaries - Add patch no-last-flag-check.patch from debian - Add patch python-parted-unittests.patch from ubuntu to fix tests - Implement singlespec version for python3 - Refresh patch pyparted-3.10.patch to work with python3 - Enable testsuite to validate it somehow OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parted?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
ae81501588
commit
d7e8562b4a
31
python-parted-parted-binary.patch
Normal file
31
python-parted-parted-binary.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
Index: pyparted-3.11.1/tests/baseclass.py
|
||||
===================================================================
|
||||
--- pyparted-3.11.1.orig/tests/baseclass.py
|
||||
+++ pyparted-3.11.1/tests/baseclass.py
|
||||
@@ -68,7 +68,7 @@ class RequiresFileSystem(unittest.TestCa
|
||||
os.write(fd, b"0")
|
||||
f.close()
|
||||
|
||||
- os.system("mke2fs -F -q %s" % (self.path,))
|
||||
+ os.system("/usr/sbin/mke2fs -F -q %s" % (self.path,))
|
||||
|
||||
self._device = _ped.device_get(self.path)
|
||||
self._geometry = _ped.Geometry(self._device, 0, self._device.length - 1)
|
||||
@@ -133,7 +133,7 @@ class RequiresDeviceAlignment(RequiresDe
|
||||
class RequiresLabeledDevice(RequiresDevice):
|
||||
def setUp(self):
|
||||
RequiresDevice.setUp(self)
|
||||
- os.system("parted -s %s mklabel msdos" % (self.path,))
|
||||
+ os.system("/usr/sbin/parted -s %s mklabel msdos" % (self.path,))
|
||||
|
||||
# Base class for any test case that requires a _ped.Disk or parted.Disk.
|
||||
class RequiresDisk(RequiresDevice):
|
||||
@@ -150,7 +150,7 @@ class RequiresMount(RequiresDevice):
|
||||
self.mountpoint = None
|
||||
|
||||
def mkfs(self):
|
||||
- os.system("mkfs.ext2 -F -q %s" % self.path)
|
||||
+ os.system("/usr/sbin/mkfs.ext2 -F -q %s" % self.path)
|
||||
|
||||
def doMount(self):
|
||||
self.mountpoint = tempfile.mkdtemp()
|
||||
Reference in New Issue
Block a user