Bug 489007 - 6.1.0: test suite fails because it tests system resources instead buid tree
Summary: 6.1.0: test suite fails because it tests system resources instead buid tree
Status: CONFIRMED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.0
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-22 20:57 UTC by kloczek
Modified: 2024-06-25 21:07 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kloczek 2024-06-22 20:57:13 UTC
Looks like test suite instead checking build tree is trying to access already installed xdg-desktop-portal-kde binary

+ /usr/bin/ctest --test-dir x86_64-redhat-linux-gnu --output-on-failure --force-new-ctest-process -j48
Internal ctest changing into directory: /home/tkloczko/rpmbuild/BUILD/xdg-desktop-portal-kde-6.1.0/x86_64-redhat-linux-gnu
Test project /home/tkloczko/rpmbuild/BUILD/xdg-desktop-portal-kde-6.1.0/x86_64-redhat-linux-gnu
    Start 1: xdgshortcuttest
    Start 2: colorschemetest
    Start 3: inputcapturebarriertest
1/3 Test #3: inputcapturebarriertest ..........   Passed    0.01 sec
2/3 Test #1: xdgshortcuttest ..................   Passed    0.02 sec
3/3 Test #2: colorschemetest ..................***Failed    0.11 sec
E
======================================================================
ERROR: setUpClass (__main__.OrgFreeDesktopAppearanceTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/xdg-desktop-portal-kde-6.1.0/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/lib64/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.10/subprocess.py", line 1863, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/libexec/xdg-desktop-portal-kde'

----------------------------------------------------------------------
Ran 0 tests in 0.004s

FAILED (errors=1)


67% tests passed, 1 tests failed out of 3

Total Test time (real) =   0.11 sec

The following tests FAILED:
          2 - colorschemetest (Failed)
Errors while running CTest
Comment 1 Nate Graham 2024-06-25 21:07:40 UTC
Thanks for doing some investigation into what the issue here is. Can confirm it.