commit: 8ad5c2faff1144be19acb75090588fb4d8ad70b7
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 19 18:43:46 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jul 19 18:59:04 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ad5c2fa
dev-python/pygobject: Improve src_test
Spawn virtx once for all tests. Use local variables.
dev-python/pygobject/pygobject-3.24.1.ebuild | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/dev-python/pygobject/pygobject-3.24.1.ebuild
b/dev-python/pygobject/pygobject-3.24.1.ebuild
index 0eae8c8d750..1013f9e4392 100644
--- a/dev-python/pygobject/pygobject-3.24.1.ebuild
+++ b/dev-python/pygobject/pygobject-3.24.1.ebuild
@@ -90,17 +90,15 @@ src_compile() {
}
src_test() {
- export GIO_USE_VFS="local" # prevents odd issues with deleting
${T}/.gvfs
- export GIO_USE_VOLUME_MONITOR="unix" # prevent udisks-related failures
in chroots, bug #449484
- export SKIP_PEP8="yes"
+ local -x GIO_USE_VFS="local" # prevents odd issues with deleting
${T}/.gvfs
+ local -x GIO_USE_VOLUME_MONITOR="unix" # prevent udisks-related
failures in chroots, bug #449484
+ local -x SKIP_PEP8="yes"
testing() {
- export XDG_CACHE_HOME="${T}/${EPYTHON}"
- run_in_build_dir virtx emake check
- unset XDG_CACHE_HOME
+ local -x XDG_CACHE_HOME="${T}/${EPYTHON}"
+ emake -C "${BUILD_DIR}" check
}
- python_foreach_impl testing
- unset GIO_USE_VFS
+ virtx python_foreach_impl testing
}
src_install() {