File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -130,15 +130,17 @@ case "${ACTION}" in
130130 ;;
131131
132132 runcoverage)
133+ test -t 1 && USE_TTY=" -t"
133134 # @todo clean up /tmp/phpxmlrpc and .phpunit.result.cache
134135 if [ ! -d build ]; then mkdir build; fi
135136 docker exec -t " ${CONTAINER_NAME} " " ${CONTAINER_WORKSPACE_DIR} /tests/ci/setup/setup_code_coverage.sh" enable
136- docker exec -it " ${CONTAINER_NAME} " su " ${CONTAINER_USER} " -c " ./vendor/bin/phpunit --coverage-html build/coverage -v tests"
137+ docker exec -i $USE_TTY " ${CONTAINER_NAME} " su " ${CONTAINER_USER} " -c " ./vendor/bin/phpunit --coverage-html build/coverage -v tests"
137138 docker exec -t " ${CONTAINER_NAME} " " ${CONTAINER_WORKSPACE_DIR} /tests/ci/setup/setup_code_coverage.sh" disable
138139 ;;
139140
140141 runtests)
141- docker exec -it " ${CONTAINER_NAME} " su " ${CONTAINER_USER} " -c " ./vendor/bin/phpunit -v tests"
142+ test -t 1 && USE_TTY=" -t"
143+ docker exec -i $USE_TTY " ${CONTAINER_NAME} " su " ${CONTAINER_USER} " -c " ./vendor/bin/phpunit -v tests"
142144 ;;
143145
144146 start)
You can’t perform that action at this time.
0 commit comments