Once upon a time, Miro Hrončok <mhroncok@xxxxxxxxxx> said: > On 17. 02. 25 2:45, Chris Adams wrote: > >Once upon a time, Alexander Ploumistos <alex.ploumistos@xxxxxxxxx> 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. Yeah, I saw the macros, but an on-the-fly created shell script should expand them fine. Like: cat > rpm-tests.sh <<'EOF' #!/bin/sh %pyproject_check_import [and more] EOF chmod +x rpm-tests.sh xfvb-run -a -w1 ./rpm-tests.sh -- Chris Adams <linux@xxxxxxxxxxx> -- _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue