forked from pool/python-parted
- Help the _ped module garbage collection in the test suite
- Use 'return NULL' rather than 'return (PyObject *) NULL' in
pydisk.c
- Use Py_VISIT() in *_traverse() functions
- Free allocated memory for temporary string buffers
- Use Py_RETURN_NONE through the _ped module code
- Coding style updates for the C code.
- Some minor cleanups for the test case code
- Remove DeprecationWarning in py_ped_constraint_duplicate()
- Drop remaining Python 2.x handling from the Makefile drop six
- Reformat all Python source code using Python black
- Replace outdated Red Hat sample GPLv2+ boilerplates
- Add support for loongarch
- Add support for no_automount partition flag
- Add new disk types - disk uuid and partition uuid
- Fix start sector for test partition
- Add example for viewing and changing GPT partition type UUID
- Accept device path via argv for partition dump example
- Add type ID / UUID to partition dump example
- Map partition type ID / UUID accessors to Partition class
- Bind low level APIs for type ID and UUID accessors
- Add support for new libparted disk type features in
parted-3.5
- Remove unnecessary patches:
- more-features-exposed.patch
- python-parted-featurestest.patch
- python-parted-no-six.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parted?expand=0&rev=19
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
---
|
|
tests/baseclass.py | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/tests/baseclass.py
|
|
+++ b/tests/baseclass.py
|
|
@@ -71,7 +71,7 @@ class RequiresFileSystem(unittest.TestCa
|
|
os.write(self.fd, b"0")
|
|
self.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)
|
|
@@ -136,7 +136,7 @@ class RequiresDeviceAlignment(RequiresDe
|
|
class RequiresLabeledDevice(RequiresDevice):
|
|
def setUp(self):
|
|
super().setUp()
|
|
- 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.
|
|
@@ -171,7 +171,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()
|