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 C956313825A for ; Sun, 15 May 2016 23:51:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1E7A5142F9; Sun, 15 May 2016 23:51:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 92D36142F9 for ; Sun, 15 May 2016 23:51:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 26F6C340BF6 for ; Sun, 15 May 2016 23:51:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C7F38981 for ; Sun, 15 May 2016 23:51:13 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1463336223.bc0d74d2933ab1716abbd85d0c9eae811e62b1c3.dolsen@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: repoman/ X-VCS-Repository: proj/portage X-VCS-Files: repoman/runtests X-VCS-Directories: repoman/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: bc0d74d2933ab1716abbd85d0c9eae811e62b1c3 X-VCS-Branch: master Date: Sun, 15 May 2016 23:51:13 +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: a0ed61e3-d066-40db-8341-986aeb13d7ee X-Archives-Hash: dac3a02825b5b3e679b26bc8897a44f1 Message-ID: <20160515235113.M3AWwCBDMQFxqFTEpkPYJjFJCvJMzJS2XykAFDdCSf0@z> commit: bc0d74d2933ab1716abbd85d0c9eae811e62b1c3 Author: Brian Dolbec gentoo org> AuthorDate: Sun May 15 00:21:33 2016 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Sun May 15 18:17:03 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=bc0d74d2 repoman: Fix the repoman/runtests script to run from it's current location This allows it to be called from the base portage directory or anywhere else. repoman/runtests | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repoman/runtests b/repoman/runtests index bad83dc..599edda 100755 --- a/repoman/runtests +++ b/repoman/runtests @@ -121,6 +121,8 @@ def main(argv): else: pyversions.extend(ver.split()) + here = os.path.dirname(__file__) + run_path = os.path.join(here, 'pym/repoman/tests/runTests.py') tempdir = None try: # Set up a single tempdir for all the tests to use. @@ -132,7 +134,7 @@ def main(argv): statuses = [] for ver in pyversions: prog = get_python_executable(ver) - cmd = [prog, '-b', '-Wd', 'pym/repoman/tests/runTests.py'] + args + cmd = [prog, '-b', '-Wd', run_path] + args if os.access(prog, os.X_OK): print('%sTesting with Python %s...%s' % (colors.GOOD, ver, colors.NORMAL))