colorschemetest: Test just built binary instead of host installed one
In a properly isolated package build environment e.g. /usr/lib/libexec/xdg-desktop-portal-kde
wouldn't be available via the host system, so let's instead test the actually built binary for it
While packaging xdg-desktop-portal-kde
for Chimera Linux I saw this which the patch addresses, let me know if there's a better way to achieve the same thing!
=> xdg-desktop-portal-kde-6.0.5-r0: running do_check...
Test project /builddir/xdg-desktop-portal-kde-6.0.5/build
Start 1: xdgshortcuttest
Start 2: colorschemetest
1/2 Test #1: xdgshortcuttest .................. Passed 0.01 sec
2/2 Test #2: colorschemetest ..................***Failed 0.05 sec
E
======================================================================
ERROR: setUpClass (__main__.OrgFreeDesktopAppearanceTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/xdg-desktop-portal-kde-6.0.5/autotests/colorschemetest.py", line 51, in setUpClass
cls.portal_process = subprocess.Popen([os.path.join(KDE_INSTALL_FULL_LIBEXECDIR, "xdg-desktop-portal-kde")], env=debug_environ, stdout=sys.stderr, stderr=sys.stderr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.12/subprocess.py", line 1953, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/libexec/xdg-desktop-portal-kde'
----------------------------------------------------------------------
Ran 0 tests in 0.003s
FAILED (errors=1)
50% tests passed, 1 tests failed out of 2
Total Test time (real) = 0.06 sec
The following tests FAILED:
2 - colorschemetest (Failed)
Errors while running CTest