From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 70FE0138247 for ; Sun, 5 Jan 2014 19:33:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0AC1DE0B40; Sun, 5 Jan 2014 19:33:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A4FA4E0B40 for ; Sun, 5 Jan 2014 19:33:18 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C9BA033F559 for ; Sun, 5 Jan 2014 19:33:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 551A0E54AB for ; Sun, 5 Jan 2014 19:33:16 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1388948938.01693184e16acd10583955aaaad9b812da778185.vapier@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: / X-VCS-Repository: proj/portage X-VCS-Files: runtests.sh X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 01693184e16acd10583955aaaad9b812da778185 X-VCS-Branch: master Date: Sun, 5 Jan 2014 19:33:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 361fb560-98eb-4a83-8a9a-96a5b152969e X-Archives-Hash: 2381f7e83219002cf88b546aa0ffa729 commit: 01693184e16acd10583955aaaad9b812da778185 Author: Mike Frysinger gentoo org> AuthorDate: Sun Jan 5 15:33:41 2014 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sun Jan 5 19:08:58 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=01693184 runtests: hardfail when a requested version is not found This way people don't have to worry about runtests.sh passing for a specific version when it wasn't found in the system. --- runtests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtests.sh b/runtests.sh index 3006be5..2870907 100755 --- a/runtests.sh +++ b/runtests.sh @@ -30,15 +30,18 @@ interrupted() { trap interrupted SIGINT unused_args=() +IGNORE_MISSING_VERSIONS=true while [ $# -gt 0 ] ; do case "$1" in --python-versions=*) PYTHON_VERSIONS=${1#--python-versions=} + IGNORE_MISSING_VERSIONS=false ;; --python-versions) shift PYTHON_VERSIONS=$1 + IGNORE_MISSING_VERSIONS=false ;; *) unused_args[${#unused_args[@]}]=$1 @@ -73,6 +76,9 @@ for version in ${PYTHON_VERSIONS}; do exit_status="1" fi echo + elif [[ ${IGNORE_MISSING_VERSIONS} != "true" ]] ; then + echo -e "${BAD}Could not find requested Python ${version}${NORMAL}" + exit_status="1" fi done