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 C9D85138247 for ; Sun, 5 Jan 2014 15:50:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0610AE0A88; Sun, 5 Jan 2014 15:50:36 +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 5F8D9E0A86 for ; Sun, 5 Jan 2014 15:50:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 4DE7833F5A3 for ; Sun, 5 Jan 2014 15:50:34 +0000 (UTC) From: Mike Frysinger To: gentoo-portage-dev@lists.gentoo.org Subject: [gentoo-portage-dev] [PATCH 1/3] runtests: add a "supported" shortcut Date: Sun, 5 Jan 2014 10:50:32 -0500 Message-Id: <1388937034-22930-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1388935543-32017-1-git-send-email-vapier@gentoo.org> References: <1388935543-32017-1-git-send-email-vapier@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org X-Archives-Salt: 952b4a85-aebb-4cd8-873e-2d14d82decae X-Archives-Hash: e55f01d4908bcb925a680eabb4d91e14 This keeps the list of supported versions in one place so people can do: ./runtests.sh --python-versions=supported No need to hardcode the list of python versions in multiple places. --- DEVELOPING | 6 +++--- runtests.sh | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/DEVELOPING b/DEVELOPING index 5dfd9b7..7aac81b 100644 --- a/DEVELOPING +++ b/DEVELOPING @@ -171,9 +171,9 @@ Then create the tarball: ./mkrelease.sh --changelog-rev v2.2.7 --tag 2.2.8 Unpack the tarball and run tests: - ./runtests.sh -Make sure you have all supported python versions installed: - 2.6 2.7 3.2 3.3 + ./runtests.sh --python-versions=supported +Make sure you have all supported python versions installed first +(see PYTHON_SUPPORTED_VERSIONS in runtests.sh). Version bump the ebuild and verify it can re-install itself: emerge portage diff --git a/runtests.sh b/runtests.sh index 010a7bf..3006be5 100755 --- a/runtests.sh +++ b/runtests.sh @@ -2,6 +2,8 @@ # Copyright 2010-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +# These are the versions we care about. The rest are just "nice to have". +PYTHON_SUPPORTED_VERSIONS="2.6 2.7 3.2 3.3" PYTHON_VERSIONS="2.6 2.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0 3.1 3.2 3.3 3.4" # has to be run from portage root dir @@ -44,6 +46,9 @@ while [ $# -gt 0 ] ; do esac shift done +if [[ ${PYTHON_VERSIONS} == "supported" ]] ; then + PYTHON_VERSIONS=${PYTHON_SUPPORTED_VERSIONS} +fi set -- "${unused_args[@]}" -- 1.8.4.3