From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RD0Bb-0005a6-49 for garchives@archives.gentoo.org; Sun, 09 Oct 2011 20:41:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3421521C149; Sun, 9 Oct 2011 20:41:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0251621C149 for ; Sun, 9 Oct 2011 20:41:19 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 790C21B401A for ; Sun, 9 Oct 2011 20:41:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D10D880042 for ; Sun, 9 Oct 2011 20:41:18 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <949b30548b21630b1423f5ead8335bc5eb0bbc92.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: 949b30548b21630b1423f5ead8335bc5eb0bbc92 Date: Sun, 9 Oct 2011 20:41:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 99625dbc0f312ebbff85e385715330ed commit: 949b30548b21630b1423f5ead8335bc5eb0bbc92 Author: Mike Frysinger gentoo org> AuthorDate: Sun Oct 9 18:38:10 2011 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sun Oct 9 20:40:43 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D949b3054 runtests: make sure we are in the right dir The code assumes we're in the top of the tree (when it tries to run with the full path "pym/portage/tests/runTests"), so try to make sure we are in the right place to allow things like `../runtests.sh` to "just work". Signed-off-by: Mike Frysinger gentoo.org> --- runtests.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/runtests.sh b/runtests.sh index 981fa1e..d55860a 100755 --- a/runtests.sh +++ b/runtests.sh @@ -4,6 +4,9 @@ =20 PYTHON_VERSIONS=3D"2.6 2.7 3.1 3.2 3.3" =20 +# has to be run from portage root dir +cd "${0%/*}" || exit 1 + case "${NOCOLOR:-false}" in yes|true) GOOD=3D