Skip to content

Commit

Permalink
Fail if no Qt installation was found at all
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1701c committed Sep 7, 2024
1 parent 1d0e4eb commit d25e2b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .kde-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Options:
per-test-timeout: 120 # Increase timeout, because some tests are parallelized in themselves and include really large headers
tests-run-in-parallel: True
cppcheck-arguments: '-i tests/'
ctest-arguments: -V

3 changes: 3 additions & 0 deletions tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,9 @@ def compiler_name():
_qt5_installation = find_qt_installation(5, ["QT_SELECT=5 qmake", "qmake-qt5", "qmake", "qmake5"])
else:
_qt5_installation = None
if (_qt5_installation == None or _qt5_installation.int_version == 0) \
and (_qt6_installation == None or _qt6_installation.int_version == 0):
sys.exit(1)
_excluded_checks = args.exclude.split(',') if args.exclude is not None else []

# -------------------------------------------------------------------------------
Expand Down

0 comments on commit d25e2b4

Please sign in to comment.