dev-python/isodate: restructure tests.

Package-Manager: portage-2.3.0
This commit is contained in:
Patrice Clement
2017-01-08 10:24:01 +01:00
parent 370ba0a846
commit f0ffb57ff2
2 changed files with 18 additions and 16 deletions

View 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 ""
}

View 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 ""
}