3.3.4-5: use xvfb-run in selftests; update known failures

This commit is contained in:
David Malcolm 2012-08-09 12:04:02 -04:00
parent 4b2a8915cf
commit 62389bcdc1
2 changed files with 34 additions and 13 deletions

View File

@ -1,6 +1,17 @@
diff -up pygobject-3.3.4/tests/test_gdbus.py.known-failures pygobject-3.3.4/tests/test_gdbus.py
--- pygobject-3.3.4/tests/test_gdbus.py.known-failures 2012-08-09 11:51:21.707712400 -0400
+++ pygobject-3.3.4/tests/test_gdbus.py 2012-08-09 11:51:38.663713384 -0400
@@ -100,6 +100,7 @@ class TestGDBusClient(unittest.TestCase)
call_done, data)
main_loop.run()
+ @unittest.expectedFailure
def test_python_calls_sync(self):
# single value return tuples get unboxed to the one element
result = self.dbus_proxy.ListNames('()')
diff -up pygobject-3.3.4/tests/test_gi.py.known-failures pygobject-3.3.4/tests/test_gi.py
--- pygobject-3.3.4/tests/test_gi.py.known-failures 2012-08-08 21:47:11.770274588 -0400
+++ pygobject-3.3.4/tests/test_gi.py 2012-08-08 22:03:52.337206170 -0400
--- pygobject-3.3.4/tests/test_gi.py.known-failures 2012-07-16 11:24:56.000000000 -0400
+++ pygobject-3.3.4/tests/test_gi.py 2012-08-09 11:51:10.409711484 -0400
@@ -2199,6 +2199,7 @@ class TestPropertiesObject(unittest.Test
self.assertAlmostEqual(obj.props.some_double, 42.0)

View File

@ -22,7 +22,7 @@
Name: pygobject3
Version: 3.3.4
Release: 4%{?dist}
Release: 5%{?dist}
License: LGPLv2+ and MIT
Group: Development/Languages
Summary: Python 2 bindings for GObject Introspection
@ -30,9 +30,6 @@ URL: https://live.gnome.org/PyGObject
#VCS: git:git://git.gnome.org/pygobject
Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.3/pygobject-%{version}.tar.xz
# Use this to help run "check"
Source1: https://raw.github.com/jordansissel/xdotool/master/t/ephemeral-x.sh
# Add these additional exclusions to the pep8 rules in "make check":
# E124 closing bracket does not match visual indentation
# E127 continuation line over-indented for visual indent
@ -40,6 +37,8 @@ Source1: https://raw.github.com/jordansissel/xdotool/master/t/ephemeral-x.sh
Patch1: ignore-more-pep8-errors.patch
# Mark some tests as known to fail; currently:
#
# On i686:
# ======================================================================
# FAIL: test_strv (test_gi.TestPropertiesObject)
# ----------------------------------------------------------------------
@ -53,6 +52,17 @@ Patch1: ignore-more-pep8-errors.patch
# - ['hello']
# + ['hello', 'world']
# ----------------------------------------------------------------------
#
# Intermittently:
# ======================================================================
# FAIL: test_python_calls_sync (test_gdbus.TestGDBusClient)
# ----------------------------------------------------------------------
# Traceback (most recent call last):
# File "/builddir/build/BUILD/pygobject-3.3.4/tests/test_gdbus.py", line 140, in test_python_calls_sync
# self.assertTrue('Timeout' in str(e), str(e))
# AssertionError: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get PID of name '1': no such name
# ----------------------------------------------------------------------
#
# Not yet sent upstream
Patch2: pygobject-3.3.4-known-failures.patch
@ -75,14 +85,11 @@ BuildRequires: pyflakes
BuildRequires: python-pep8
## for the Gdk and Gtk typelibs, used during the test suite:
BuildRequires: gtk3
## for use by ephemeral-x.sh:
## for xvfb-run:
BuildRequires: xorg-x11-server-Xvfb
BuildRequires: xterm
BuildRequires: dejavu-sans-fonts
BuildRequires: dejavu-sans-mono-fonts
BuildRequires: dejavu-serif-fonts
### for pkill:
BuildRequires: procps-ng
## for dbus-launch, used by test_gdbus:
BuildRequires: dbus-x11
%endif # with_check
@ -170,7 +177,7 @@ find $RPM_BUILD_ROOT -name '*.a' -delete
%check
%if %{with_check}
# Run the selftests under an ephemeral X server (so that they can
# Run the selftests under a temporary xvfb X server (so that they can
# initialize Gdk etc):
# FIXME: disabled for python3
@ -182,11 +189,11 @@ find $RPM_BUILD_ROOT -name '*.a' -delete
pushd %{py3dir}
PYTHON=%{__python3}
export PYTHON
%{SOURCE1} make DESTDIR=$RPM_BUILD_ROOT check %{verbosity}
xvfb-run make DESTDIR=$RPM_BUILD_ROOT check %{verbosity}
popd
%endif # with_python3
%{SOURCE1} make DESTDIR=$RPM_BUILD_ROOT check %{verbosity}
xvfb-run make DESTDIR=$RPM_BUILD_ROOT check %{verbosity}
%endif # with_check
@ -223,6 +230,9 @@ popd
%endif # with_python3
%changelog
* Thu Aug 9 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.4-5
- use xvfb-run in selftests; update known failures
* Wed Aug 8 2012 David Malcolm <dmalcolm@redhat.com> - 3.3.4-4
- add a %%check check; add V=1 to all make invocations