forked from pool/python-parted
		
	* Do not remove the generated tarballs. * Update the RELEASE file. * tests: Fix flag_get_name tests * Avoid potential NULL dereferences in pydisk.c and pytimer.c * New - example to query device capacity * correct spelling mistake * Make the partition name a property on parted.Partition objects * 'from collections' -> 'from collections.abc' * Add some more examples * Small correction to the PED_EXCEPTION_FIX handling. * Restore returning None for get_name * Handle PED_EXCEPTION_FIX * check for undefined flags * added support for newer pyparted versions * Support pypi.python.org for releases * Forgot the "/" in the path name * Remove assumption that temp devices get created in /tmp * Adjust test case numbers for GeometryWriteTestCase again * Revert "Use copy.deepcopy() rather than .duplicate()" * Remove another unnecessary os.close() from baseclass.py * Remove rogue close() call in baseclass.py * Ignore the 'const' and just use these values as 'char *' * Use copy.deepcopy * More file descriptor close statements. * Fixes for the RequiresDeviceNode class * Use a smaller length for GeometryWriteTestCase * Close the RequiresDeviceNode file descriptor before removal. * Fix writing NULL sectors using a Geometry object * Use Decimal OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parted?expand=0&rev=12
		
			
				
	
	
		
			32 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
Index: pyparted-3.11.7/tests/baseclass.py
 | 
						|
===================================================================
 | 
						|
--- pyparted-3.11.7.orig/tests/baseclass.py
 | 
						|
+++ pyparted-3.11.7/tests/baseclass.py
 | 
						|
@@ -72,7 +72,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)
 | 
						|
@@ -137,7 +137,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):
 | 
						|
@@ -161,7 +161,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()
 |