From: Mike Frysinger Date: Tue, 20 Dec 2016 20:08:07 +0000 (-0500) Subject: net-misc/openssh: clean up test code a bit X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=59211623564fe3e7636eeab5255cd732d9f1aee8;p=gentoo.git net-misc/openssh: clean up test code a bit Use arrays instead of a flat scalar, and clean up the warning/error output. --- diff --git a/net-misc/openssh/openssh-7.3_p1-r8.ebuild b/net-misc/openssh/openssh-7.3_p1-r8.ebuild index a03905c5b8f6..f886839d5865 100644 --- a/net-misc/openssh/openssh-7.3_p1-r8.ebuild +++ b/net-misc/openssh/openssh-7.3_p1-r8.ebuild @@ -272,37 +272,32 @@ src_install() { } src_test() { - local t tests skipped failed passed shell - tests="interop-tests compat-tests" - skipped="" - shell=$(egetshell ${UID}) + local t skipped=() failed=() passed=() + local tests=( interop-tests compat-tests ) + + local shell=$(egetshell "${UID}") if [[ ${shell} == */nologin ]] || [[ ${shell} == */false ]] ; then - elog "Running the full OpenSSH testsuite" - elog "requires a usable shell for the 'portage'" + elog "Running the full OpenSSH testsuite requires a usable shell for the 'portage'" elog "user, so we will run a subset only." - skipped="${skipped} tests" + skipped+=( tests ) else - tests="${tests} tests" + tests+=( tests ) fi - # It will also attempt to write to the homedir .ssh + + # It will also attempt to write to the homedir .ssh. local sshhome=${T}/homedir mkdir -p "${sshhome}"/.ssh - for t in ${tests} ; do + for t in "${tests[@]}" ; do # Some tests read from stdin ... HOMEDIR="${sshhome}" HOME="${sshhome}" \ emake -k -j1 ${t}