summaryrefslogtreecommitdiff
path: root/app-shells/bash-completion/bash-completion-9999.ebuild
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2022-04-23 11:14:25 -0400
committerMike Gilbert <floppym@gentoo.org>2022-04-23 11:14:25 -0400
commit5032feb8d914d7c277154aa74d7e04414999e428 (patch)
treebd32230e26752ceec9e4a0a3b114c3c657f8ccd2 /app-shells/bash-completion/bash-completion-9999.ebuild
parent82b472463c88f10e0c74b54e901e40e5bc09b179 (diff)
downloadgentoo-5032feb8d914d7c277154aa74d7e04414999e428.tar.gz
gentoo-5032feb8d914d7c277154aa74d7e04414999e428.tar.bz2
gentoo-5032feb8d914d7c277154aa74d7e04414999e428.zip
app-shells/bash-completion: addpredict ~ for tests
Closes: https://bugs.gentoo.org/839840 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'app-shells/bash-completion/bash-completion-9999.ebuild')
-rw-r--r--app-shells/bash-completion/bash-completion-9999.ebuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/app-shells/bash-completion/bash-completion-9999.ebuild b/app-shells/bash-completion/bash-completion-9999.ebuild
index 70ce84b4ed82..2f4caf5b89e1 100644
--- a/app-shells/bash-completion/bash-completion-9999.ebuild
+++ b/app-shells/bash-completion/bash-completion-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -99,7 +99,10 @@ src_prepare() {
src_test() {
# portage's HOME override breaks tests
- emake check HOME="$(egethome "${UID}")" PYTESTFLAGS="-vv" NETWORK=none
+ local myhome=$(unset HOME; echo ~)
+ local -x SANDBOX_PREDICT=${SANDBOX_PREDICT}
+ addpredict "${myhome}"
+ emake check HOME="${myhome}" PYTESTFLAGS="-vv" NETWORK=none
}
src_install() {