Public bug reported:
Tests are not currently being run in the build for pyparted, and once
re-enabled (which is trivial), they fail in pretty sad ways:
[...]
runTest (tests.test_parted_partition.PartitionGetLengthTestCase) ... sh: 1:
udevadm: not found
sh: 1: udevadm: not found
ok
[...]
runTest (tests.test_parted_partition.PartitionStrTestCase) ... skipped
'Unimplemented test case.'
runTest (tests.test_parted_partition.PartitionUnsetFlagTestCase) ... skipped
'Unimplemented test case.'
======================================================================
ERROR: runTest (tests.test__ped_ped.DiskFlagGetNameTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test__ped_ped.py", line 85, in runTest
self.assertRaises(ValueError, _ped.disk_flag_get_name, 1000)
File "/usr/lib/python2.7/unittest/case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
PartedException: Unknown disk flag, 1000.
======================================================================
ERROR: runTest (tests.test__ped_ped.PartitionFlagGetNameTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test__ped_ped.py", line 51, in runTest
self.assertRaises(ValueError, _ped.partition_flag_get_name, 1000)
File "/usr/lib/python2.7/unittest/case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
PartedException: Unknown partition flag, 1000.
======================================================================
ERROR: runTest (tests.test__ped_disk.DiskNewLabeledTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/test__ped_disk.py", line 36, in runTest
result = _ped.Disk(self._device)
DiskLabelException: /tmp/temp-device-TaVUiL: unrecognised disk label
----------------------------------------------------------------------
Ran 272 tests in 4.936s
FAILED (errors=3, skipped=124)
** Affects: pyparted (Ubuntu)
Importance: High
Assignee: Ćukasz Zemczak (sil2100)
Status: Triaged
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1695058
Title:
should run tests as part of the package build
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyparted/+bug/1695058/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs