Re: Problem with xvfb-run test of Gtk3 program in %check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 29 Jan 2019, Robin Lee wrote:

Hi,

I try to run the test suite of a Gtk3 program during %check.
I run the test under xvfb-run as suggested in [1]. But it ran into
strange errors.
Am I missing some basic BR to run Gtk3 under xvfb?

+ xvfb-run -a ./test.py

(test.py:27324): Gtk-WARNING **: 11:09:44.758: Could not find the icon
'zim-add-bookmark'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
   http://icon-theme.freedesktop.org/releases

For this, try BR hicolor-icon-theme. I don't know if that will fix the other errors though.

Traceback (most recent call last):
 File "/builddir/build/BUILD/zim-0.70-rc2/zim/gui/__init__.py", line
32, in load_zim_stock_icons
   pixbuf = icon_theme.load_icon(name, 24, 0)
GLib.Error: gtk-icon-theme-error-quark: Icon 'zim-add-bookmark' not
present in theme Adwaita (0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "./test.py", line 196, in <module>
   main()
 File "./test.py", line 107, in main
   suite = tests.load_tests(loader, None, None)
 File "/builddir/build/BUILD/zim-0.70-rc2/tests/__init__.py", line
97, in load_tests
   test = loader.loadTestsFromName(name)
 File "/usr/lib64/python3.6/unittest/loader.py", line 153, in loadTestsFromName
   module = __import__(module_name)
 File "/builddir/build/BUILD/zim-0.70-rc2/tests/datetimetz.py", line
78, in <module>
   from zim.plugins.tasklist.dates import *
 File "/builddir/build/BUILD/zim-0.70-rc2/zim/plugins/tasklist/__init__.py",
line 28, in <module>
   from zim.gui.pageview import PageViewExtension
 File "/builddir/build/BUILD/zim-0.70-rc2/zim/gui/__init__.py", line
44, in <module>
   load_zim_stock_icons()
 File "/builddir/build/BUILD/zim-0.70-rc2/zim/gui/__init__.py", line
35, in load_zim_stock_icons
   pixbuf = GdkPixbuf.Pixbuf.new_from_file(path)
GLib.Error: gdk-pixbuf-error-quark: Couldn’t recognize the image file
format for file
“/builddir/build/BUILD/zim-0.70-rc2/data/pixmaps/add-bookmark.png” (3)
error: Bad exit status from /var/tmp/rpm-tmp.erQZLG (%check)
   Bad exit status from /var/tmp/rpm-tmp.erQZLG (%check)

[1] https://fedoraproject.org/wiki/PackageMaintainers/GraphicalTests
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux