On 17. 02. 25 2:45, Chris Adams wrote:
Once upon a time, Alexander Ploumistos <alex.ploumis...@gmail.com> said:
I am trying to build the latest version of input-remapper[1] and I
guess some change to the test units has led to this error:

[…]
+ /usr/bin/python3 -sP /usr/lib/rpm/redhat/import_all_modules.py -f
/builddir/build/BUILD/input-remapper-2.1.1-build/input-remapper-2.1.1-1.fc42.x86_64-pyproject-modules
Check import: inputremapper
Check import: inputremapper.bin
Check import: inputremapper.bin.input_remapper_control
Check import: inputremapper.bin.input_remapper_gtk

(import_all_modules.py:1580): Gtk-WARNING **: 01:44:47.167: cannot open display:
error: Bad exit status from /var/tmp/rpm-tmp.QjGEES (%check)
     Bad exit status from /var/tmp/rpm-tmp.QjGEES (%check)

It sounds like it's something trying to test under a GUI; rather than
try to avoid the test, try using Xvfb to satisfy it.  Add a

     BuildRequires: Xvfb xauth

and then wrap tests with (possibly moving them to a script to call):

     xvfb-run -a -w1 [check command]

Unfortunately, the %pyproject_check_import expands to a shell scriptlet,
so this won't be trivial.

We can amend the macro to allow using xvfb-run or xwfb-run somehow.

--
Miro Hrončok
--
Phone: +420777974800
Fedora Matrix: mhroncok

--
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to