dev-python/isodate: restructure tests.
authorPatrice Clement <monsieurp@gentoo.org>
Sun, 8 Jan 2017 09:24:01 +0000 (10:24 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Sun, 8 Jan 2017 09:24:15 +0000 (10:24 +0100)
Package-Manager: portage-2.3.0

dev-python/isodate/isodate-0.5.1.ebuild
dev-python/isodate/isodate-0.5.4.ebuild

index bcd182ced7f4de60cf34671d8f047ba74899b6ec..66864f9107443b170b2ec494fd53ee7a81d9ec8c 100644 (file)
@@ -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 ""
 }
index a9e5d814be19bc3a886213e6498f18c0a7a0ea75..f5351b07bf7e48ef17ee1b06fd342d068f6b6b80 100644 (file)
@@ -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 ""
 }