diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2017-01-08 10:24:01 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2017-01-08 10:24:15 +0100 |
commit | f0ffb57ff246dd6a54b496caebfb084e689e0d17 (patch) | |
tree | fab740d24ffe8c4d0f8d5586b3c65aba6b2449c6 /dev-python/isodate | |
parent | 370ba0a8462605e2d1dd3d8ba9c22cf0540db9a2 (diff) | |
download | gentoo-f0ffb57ff246dd6a54b496caebfb084e689e0d17.tar.gz gentoo-f0ffb57ff246dd6a54b496caebfb084e689e0d17.tar.xz |
dev-python/isodate: restructure tests.
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-python/isodate')
-rw-r--r-- | dev-python/isodate/isodate-0.5.1.ebuild | 17 | ||||
-rw-r--r-- | dev-python/isodate/isodate-0.5.4.ebuild | 17 |
2 files changed, 18 insertions, 16 deletions
diff --git a/dev-python/isodate/isodate-0.5.1.ebuild b/dev-python/isodate/isodate-0.5.1.ebuild index bcd182ced7f..66864f91074 100644 --- a/dev-python/isodate/isodate-0.5.1.ebuild +++ b/dev-python/isodate/isodate-0.5.1.ebuild @@ -20,14 +20,15 @@ IUSE="" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" python_test() { - local test - pushd "${BUILD_DIR}"/lib/ - for test in ${PN}/tests/test_*.py - do - if ! "${PYTHON}" $test; then - die "Test $test failed under ${EPYTHON}" + local testfile + pushd "${BUILD_DIR}"/lib/ || die + for test in ${PN}/tests/test_*.py; do + if ! "${PYTHON}" "${testfile}"; then + die "Test ${testfile} failed under ${EPYTHON}" fi done - # Give some order to the output salad - einfo "Testsuite passed under ${EPYTHON}";einfo "" + + # Give some order to the output salad. + einfo "Testsuite passed under ${EPYTHON}"; + einfo "" } diff --git a/dev-python/isodate/isodate-0.5.4.ebuild b/dev-python/isodate/isodate-0.5.4.ebuild index a9e5d814be1..f5351b07bf7 100644 --- a/dev-python/isodate/isodate-0.5.4.ebuild +++ b/dev-python/isodate/isodate-0.5.4.ebuild @@ -20,14 +20,15 @@ IUSE="" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" python_test() { - local test - pushd "${BUILD_DIR}"/lib/ - for test in ${PN}/tests/test_*.py - do - if ! "${PYTHON}" $test; then - die "Test $test failed under ${EPYTHON}" + local testfile + pushd "${BUILD_DIR}"/lib/ || die + for test in ${PN}/tests/test_*.py; do + if ! "${PYTHON}" "${testfile}"; then + die "Test ${testfile} failed under ${EPYTHON}" fi done - # Give some order to the output salad - einfo "Testsuite passed under ${EPYTHON}";einfo "" + + # Give some order to the output salad. + einfo "Testsuite passed under ${EPYTHON}"; + einfo "" } |