[Bug 1695058] Re: should run tests as part of the package build
Launchpad Bug Tracker
1695058 at bugs.launchpad.net
Mon Jul 17 17:07:26 UTC 2017
This bug was fixed in the package pyparted - 3.11.1-1ubuntu1
---------------
pyparted (3.11.1-1ubuntu1) artful; urgency=medium
* debian/rules:
- Re-enable tests (LP: #1695058).
* debian/patches/fix-unit-tests.patch:
- Add patch for fixing some of the flag tests as _ped now returns a
different exceptions for those.
* debian/control:
- Add python-six and parted to the build-dependencies as those are required
for unit testing.
- Remove the python*-all-dbg build-deps as they do not seem to be needed
and otherwise cause strange fatal Python errors when running the test
suite during build (LP: #1704766).
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak at ubuntu.com> Fri, 14 Jul
2017 14:14:11 +0200
** Changed in: pyparted (Ubuntu)
Status: In Progress => Fix Released
--
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:
Fix Released
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