Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/herbstluftwm/
Date: Mon, 12 Jul 2021 07:25:56
Message-Id: 1626074693.1fa0ed9fd7fb3abbd6b2fd5f7f6b6ec638742bf7.flow@gentoo
1 commit: 1fa0ed9fd7fb3abbd6b2fd5f7f6b6ec638742bf7
2 Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 12 07:24:53 2021 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 12 07:24:53 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fa0ed9f
7
8 x11-wm/herbstluftwm: use distutils_install_for_testing in src_test
9
10 Bug: https://bugs.gentoo.org/801658
11 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
12
13 x11-wm/herbstluftwm/herbstluftwm-0.9.3.ebuild | 7 +++++++
14 x11-wm/herbstluftwm/herbstluftwm-9999.ebuild | 7 +++++++
15 2 files changed, 14 insertions(+)
16
17 diff --git a/x11-wm/herbstluftwm/herbstluftwm-0.9.3.ebuild b/x11-wm/herbstluftwm/herbstluftwm-0.9.3.ebuild
18 index 65e8342992a..fe478ccf2e5 100644
19 --- a/x11-wm/herbstluftwm/herbstluftwm-0.9.3.ebuild
20 +++ b/x11-wm/herbstluftwm/herbstluftwm-0.9.3.ebuild
21 @@ -129,5 +129,12 @@ distutils_enable_tests pytest
22 src_test() {
23 ln -s "${BUILD_DIR}/herbstclient" || die "Could not symlink herbstclient"
24 ln -s "${BUILD_DIR}/herbstluftwm" || die "Could not symlink herbstluftwm"
25 +
26 + pushd python > /dev/null || die
27 + distutils_install_for_testing
28 + popd > /dev/null || die
29 +
30 + # Ensure PYTHONPATH is exported, see https://bugs.gentoo.org/801658.
31 + export PYTHONPATH
32 python_test
33 }
34
35 diff --git a/x11-wm/herbstluftwm/herbstluftwm-9999.ebuild b/x11-wm/herbstluftwm/herbstluftwm-9999.ebuild
36 index c167e7f353e..37035a6a5ff 100644
37 --- a/x11-wm/herbstluftwm/herbstluftwm-9999.ebuild
38 +++ b/x11-wm/herbstluftwm/herbstluftwm-9999.ebuild
39 @@ -129,5 +129,12 @@ distutils_enable_tests pytest
40 src_test() {
41 ln -s "${BUILD_DIR}/herbstclient" || die "Could not symlink herbstclient"
42 ln -s "${BUILD_DIR}/herbstluftwm" || die "Could not symlink herbstluftwm"
43 +
44 + pushd python > /dev/null || die
45 + distutils_install_for_testing
46 + popd > /dev/null || die
47 +
48 + # Ensure PYTHONPATH is exported, see https://bugs.gentoo.org/801658.
49 + export PYTHONPATH
50 python_test
51 }