diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-01-05 10:33:41 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-01-05 14:08:58 -0500 |
commit | 01693184e16acd10583955aaaad9b812da778185 (patch) | |
tree | 14cde326f31fcd7b0a8f27eb9a5d9836f1d0744a /runtests.sh | |
parent | runtests: add a "supported" shortcut (diff) | |
download | portage-01693184e16acd10583955aaaad9b812da778185.tar.gz portage-01693184e16acd10583955aaaad9b812da778185.tar.bz2 portage-01693184e16acd10583955aaaad9b812da778185.zip |
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.
Diffstat (limited to 'runtests.sh')
-rwxr-xr-x | runtests.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtests.sh b/runtests.sh index 3006be55e..2870907a7 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 |