[Bug 1695058] Re: should run tests as part of the package build
Łukasz Zemczak
1695058 at bugs.launchpad.net
Fri Jul 14 12:09:09 UTC 2017
** Changed in: pyparted (Ubuntu)
Status: Triaged => In Progress
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pyparted in Ubuntu.
https://bugs.launchpad.net/bugs/1695058
Title:
should run tests as part of the package build
Status in pyparted package in Ubuntu:
In Progress
Bug description:
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyparted/+bug/1695058/+subscriptions
More information about the foundations-bugs
mailing list