dcantrell / pyparted

Python bindings for GNU parted (libparted)
GNU General Public License v2.0
86 stars 43 forks source link

failing tests #26

Closed adicarlo closed 7 years ago

adicarlo commented 8 years ago

From the latest git, I'm getting a number of fails on 'make test':

======================================================================
ERROR: runTest (tests.test__ped_disk.DiskNewLabeledTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/python/pyparted/tests/test__ped_disk.py", line 36, in runTest
    result = _ped.Disk(self._device)
DiskLabelException: /tmp/temp-device-86bnoQ: unrecognised disk label

======================================================================
ERROR: runTest (tests.test__ped_ped.FileSystemProbeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/python/pyparted/tests/test__ped_ped.py", line 260, in runTest
    ty = _ped.file_system_probe(self._geometry)
FileSystemException: Failed to find any filesystem in given geometry

======================================================================
FAIL: runTest (tests.test__ped_ped.FileSystemProbeSpecificTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/src/python/pyparted/tests/test__ped_ped.py", line 280, in runTest
    self.assertIsInstance(result, _ped.Geometry)
AssertionError: None is not an instance of <type '_ped.Geometry'>

----------------------------------------------------------------------
Ran 272 tests in 3.545s

FAILED (failures=1, errors=2, skipped=121)

I haven't looked into any of these fails, but let me know if that would be helpful.

atodorov commented 8 years ago

@adicarlo how did you execute the tests and on what OS, etc ? Maybe try with the latest updates from Fedora/Rawhide and see if it reproduces ?

dcantrell commented 7 years ago

[dcantrel@awvr pyparted]$ make test >log 2>&1 [dcantrel@awvr pyparted]$ grep DiskNewLabeledTestCase log runTest (tests.testped_disk.DiskNewLabeledTestCase) ... ok [dcantrel@awvr pyparted]$ grep FileSystemProbeTestCase log runTest (tests.test__ped_ped.FileSystemProbeTestCase) ... ok [dcantrel@awvr pyparted]$ grep FileSystemProbeSpecificTestCase log runTest (tests.testped_ped.FileSystemProbeSpecificTestCase) ... ok

Appears to be working fine now. This is the master branch on Fedora 25 x86_64:

[dcantrel@awvr pyparted]$ cat /etc/os-release (git)-[master] NAME=Fedora VERSION="25 (Twenty Five)" ID=fedora VERSION_ID=25 PRETTY_NAME="Fedora 25 (Twenty Five)" ANSI_COLOR="0;34" CPE_NAME="cpe:/o:fedoraproject:fedora:25" HOME_URL="https://fedoraproject.org/" SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=25 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=25 PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy [dcantrel@awvr pyparted]$ uname -a (git)-[master] Linux awvr 4.11.3-202.fc25.x86_64 #1 SMP Mon Jun 5 16:38:21 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux