commit: 737704ccd537f71f22bb98920f410f9d2ebc9b9b
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 8 22:50:27 2024 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Jan 8 23:00:16 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=737704cc
www-client/qutebrowser: fix tests due to python-utils changes
Several tests fail due to `-o tmp_path_retention_policy=failed`
from python-utils.eclass since commit b77499537549, so set
back to the default (=all).
The other setting (tmp_path_retention_count=0) does not seem
to be a problem.
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
www-client/qutebrowser/qutebrowser-3.1.0.ebuild | 14 +++++++++++---
www-client/qutebrowser/qutebrowser-9999.ebuild | 14 +++++++++++---
2 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/www-client/qutebrowser/qutebrowser-3.1.0.ebuild
b/www-client/qutebrowser/qutebrowser-3.1.0.ebuild
index 7ddeb9db71fb..6134e6cba9f4 100644
--- a/www-client/qutebrowser/qutebrowser-3.1.0.ebuild
+++ b/www-client/qutebrowser/qutebrowser-3.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -152,8 +152,16 @@ python_test() {
tests/unit/mainwindow/test_tabwidget.py::TestTabWidget::test_tab_text_not_edlided_for_wide_tabs
)
- # skip benchmarks (incl. _tree), and warning tests broken by -Wdefault
- epytest -p xvfb -k 'not _bench and not _matches_tree and not _warning'
+ local epytestargs=(
+ # prefer pytest-xvfb over virtx given same upstream and is
expected
+ -p xvfb
+ # skip warning tests broken by -wdefault, and benchmarks
+ -k 'not _bench and not _matches_tree and not _warning'
+ # override eclass' settings, tempdirs are re-used by Qt
+ -o tmp_path_retention_policy=all
+ )
+
+ epytest "${epytestargs[@]}"
}
python_install_all() {
diff --git a/www-client/qutebrowser/qutebrowser-9999.ebuild
b/www-client/qutebrowser/qutebrowser-9999.ebuild
index 23ed8b900a7c..6d2ceaa9e208 100644
--- a/www-client/qutebrowser/qutebrowser-9999.ebuild
+++ b/www-client/qutebrowser/qutebrowser-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -152,8 +152,16 @@ python_test() {
tests/unit/mainwindow/test_tabwidget.py::TestTabWidget::test_tab_text_not_edlided_for_wide_tabs
)
- # skip benchmarks (incl. _tree), and warning tests broken by -Wdefault
- epytest -p xvfb -k 'not _bench and not _matches_tree and not _warning'
+ local epytestargs=(
+ # prefer pytest-xvfb over virtx given same upstream and is
expected
+ -p xvfb
+ # skip warning tests broken by -wdefault, and benchmarks
+ -k 'not _bench and not _matches_tree and not _warning'
+ # override eclass' settings, tempdirs are re-used by Qt
+ -o tmp_path_retention_policy=all
+ )
+
+ epytest "${epytestargs[@]}"
}
python_install_all() {