Bug 955532
Summary: | dbus package doesn't run %check tests | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Matěj Cepl <mcepl> | ||||||||||
Component: | dbus | Assignee: | Colin Walters <walters> | ||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Desktop QE <desktop-qa-list> | ||||||||||
Severity: | high | Docs Contact: | |||||||||||
Priority: | high | ||||||||||||
Version: | 7.0 | CC: | pvine | ||||||||||
Target Milestone: | rc | Keywords: | TestBlocker | ||||||||||
Target Release: | --- | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | 1:1.6.12-5.el7 | Doc Type: | Bug Fix | ||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2014-06-13 11:44:53 UTC | Type: | Bug | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Attachments: |
|
Description
Matěj Cepl
2013-04-23 08:53:50 UTC
*** Bug 877655 has been marked as a duplicate of this bug. *** Any chance you could make this patch against the fedora rawhide spec instead of rhel? Created attachment 765577 [details]
updated suggested patch
(In reply to Colin Walters from comment #3) > Any chance you could make this patch against the fedora rawhide spec instead > of rhel? Actually the patch in comment 3 is same for RHEL-7 as well as for Rawhide. Created attachment 765705 [details]
updated suggested patch
OK, added exit 1 to the failing branch of %if and eliminated duplicity of %check sections.
Created attachment 768397 [details]
WIP patch to enable tests
Ok, this patch I think is a lot clearer than yours; all we conceptually need to do is --enable-tests.
However...you must not have been using mock because as I mentioned before, if we enable the tests we need a whole slew of new build dependencies just for %check. This patch includes them.
Where I ran into further trouble is that dbus-launch wants an X session; I was able to provide one via Xvfb in a hacky way, but then dbus-launch still failed. Needs more investigation.
Ideally we'd have a generic tool "run-with-tmp-Xvfb" that did this in a more robust way that could simply be prepended to "make check" invocations.
Ok, pushed with a hack to disable the autolaunch test which can't work as is. http://pkgs.fedoraproject.org/cgit/dbus.git/commit/?id=a1e9fcfdadcba3038e21eed336f207c98cee3ede https://brewweb.devel.redhat.com/taskinfo?taskID=6058174 Looks like there's one test that only asserts on s390. Ok, this works in current RHEL7, but fails in Fedora rawhide: *** stack smashing detected ***: ./../dbus/dbus-test terminated Created attachment 786585 [details] suggested improvement (In reply to Colin Walters from comment #11) > Ok, this works in current RHEL7, but fails in Fedora rawhide: OK, two things (after checking the latest on rhel-7.0 branch, commit 4c426435acd4e910fa1c3b72483856f17de6d36a): 1) first of all see the attached patch. Yes, it is a nitpick, but have mercy on our (soon to be) old eyes (we may also grep on PASS/FAIL strings). 2) looking at the diff between my patch and the result I see different options of %configure in the %check section. I had also --enable-installed-tests and --with-systemdsystemunitdir=/lib/systemd/system/ (not sure why the latter). It it OK, these two are missing? Best, Matěj Applied. (If you do make future patches, please make them against dist-git and use "git commit", then "git format-patch"). Looking at http://download.devel.redhat.com/brewroot/packages/dbus/1.6.12/5.el7/data/logs/x86_64/build.log I see tests running. 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. |