dev-python/ipython: Add missing dies, reduce indent
authorMarius Brehler <marbre@linux.sungazer.de>
Sat, 28 Nov 2015 16:16:37 +0000 (17:16 +0100)
committerMarius Brehler <marbre@linux.sungazer.de>
Sat, 28 Nov 2015 16:16:37 +0000 (17:16 +0100)
Package-Manager: portage-2.2.20.1

dev-python/ipython/ipython-3.2.1-r1.ebuild
dev-python/ipython/ipython-4.0.1.ebuild

index f482b55a62bd073fbcde8c310a9aabdc05d6f84a..7af0634a3e505c6e6e2163009335d620fd6d9282 100644 (file)
@@ -114,12 +114,12 @@ python_test() {
        # Failure of some modules only in python3.4 
        local fail
        run_tests() {
-               pushd ${TEST_DIR} > /dev/null
+               pushd ${TEST_DIR} > /dev/null || die
                "${PYTHON}" -m IPython.testing.iptestcontroller --all || fail=1
-               popd > /dev/null
+               popd > /dev/null || die
        }
        VIRTUALX_COMMAND=run_tests virtualmake
-               [[ ${fail} ]] && die "Tests fail with ${EPYTHON}"
+       [[ ${fail} ]] && die "Tests fail with ${EPYTHON}"
 }
 
 python_install() {
index b15af201c62bdeffd669e89b5d1cb92d357b8b5b..bca38adcc44e257fb6e2656b1cd8238318f98463 100644 (file)
@@ -96,12 +96,12 @@ python_test() {
        # Failure of some modules only in python3.4 
        local fail
        run_tests() {
-               pushd ${TEST_DIR} > /dev/null
+               pushd ${TEST_DIR} > /dev/null || die
                "${PYTHON}" -m IPython.testing.iptestcontroller --all || fail=1
-               popd > /dev/null
+               popd > /dev/null || die
        }
        VIRTUALX_COMMAND=run_tests virtualmake
-               [[ ${fail} ]] && die "Tests fail with ${EPYTHON}"
+       [[ ${fail} ]] && die "Tests fail with ${EPYTHON}"
 }
 
 python_install() {