eclass/php-ext-source-r3: define the variable slot local to src_test
authorGöktürk Yüksek <gokturk@gentoo.org>
Sat, 29 Oct 2016 20:11:16 +0000 (16:11 -0400)
committerGöktürk Yüksek <gokturk@gentoo.org>
Sat, 29 Oct 2016 23:32:12 +0000 (19:32 -0400)
eclass/php-ext-source-r3.eclass

index f2999d43c44fe5047d67f98355e19e46ac34630d..54eda3123d221f8b37b0769b9447a516ca9f23c9 100644 (file)
@@ -236,6 +236,7 @@ php-ext-source-r3_src_install() {
 # a run-tests.php file to be executed by `make test`. We only need to
 # force the test suite to run in non-interactive mode.
 php-ext-source-r3_src_test() {
+       local slot
        for slot in $(php_get_slots); do
                php_init_slot_env "${slot}"
                NO_INTERACTION="yes" emake test