RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1064895 - [ patch ] - enable running of test suite through python-coverage
Summary: [ patch ] - enable running of test suite through python-coverage
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python-blivet
Version: 7.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: mulhern
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On: 1065422 1065431 1065437 1065443
Blocks: 782468
TreeView+ depends on / blocked
 
Reported: 2014-02-13 13:54 UTC by Alexander Todorov
Modified: 2023-03-08 07:26 UTC (History)
1 user (show)

Fixed In Version: python-blivet-0.18.26-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 10:04:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
blivet + coverage patch (617 bytes, text/plain)
2014-02-13 13:54 UTC, Alexander Todorov
no flags Details

Description Alexander Todorov 2014-02-13 13:54:48 UTC
Created attachment 862789 [details]
blivet + coverage patch

Patch tested on master and f20-branch. Please push to Rawhide as well.

Comment 2 mulhern 2014-02-14 16:15:37 UTC
I'm working with other test suite issues so think I should pick this one up, too.

Comment 3 mulhern 2014-02-18 20:21:24 UTC
acked.

Comment 4 mulhern 2014-02-19 15:28:21 UTC
Fixed In Version: python-blivet-0.18.26-1

Comment 6 Alexander Todorov 2014-03-19 14:45:08 UTC
# make coverage
...
======================================================================
ERROR: udev_test (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: udev_test
Traceback (most recent call last):
  File "/usr/lib64/python2.7/unittest/loader.py", line 252, in _find_tests
    module = self._get_module_from_name(name)
  File "/usr/lib64/python2.7/unittest/loader.py", line 230, in _get_module_from_name
    __import__(name)
  File "/root/blivet-0.18.33/tests/udev_test.py", line 4, in <module>
    import mock
ImportError: No module named mock



# coverage report
Name                               Stmts   Miss Branch BrMiss  Cover
--------------------------------------------------------------------
blivet/__init__                     1757   1734    938    936     1%
tests/action_test                    450    448     14     14     1%
tests/formats_test/__init__            0      0      0      0   100%
tests/formats_test/labeling_test      95     92     20     20     3%
tests/formats_test/selinux_test       62     57      2      2     8%
tests/partitioning_test               55     53      2      2     4%
tests/sanity_check_test               21     19      2      2     9%
tests/size_test                       70     68     14     14     2%
tests/tsort_test                      37     35      6      6     5%
tests/udev_test                      101     99     12     12     2%
--------------------------------------------------------------------
TOTAL                               2648   2605   1010   1008     1%




The particular issue of having a make target to execute the test suite under python-coverage has been verified with python-blivet-0.18.33-1.el7. However python-mock is not available in the RHEL 7 repos. I will open another bug for that.

Comment 7 Ludek Smid 2014-06-13 10:04:51 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.