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 5D9B413825A for ; Sun, 15 May 2016 00:23:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4727621C04E; Sun, 15 May 2016 00:23:19 +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 E559F21C04E for ; Sun, 15 May 2016 00:23:18 +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 B8E633408B8 for ; Sun, 15 May 2016 00:23:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5851833A for ; Sun, 15 May 2016 00:23:10 +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: <1463271693.98c6189981760df1b7077cdf1c74de9d427a8af9.dolsen@gentoo> Subject: [gentoo-commits] proj/portage:repoman 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: 98c6189981760df1b7077cdf1c74de9d427a8af9 X-VCS-Branch: repoman Date: Sun, 15 May 2016 00:23:10 +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: a152dde1-aaee-49b3-8b83-02dbc8ff2ec9 X-Archives-Hash: f0e83d8fed9e9914677c210529c9030f commit: 98c6189981760df1b7077cdf1c74de9d427a8af9 Author: Brian Dolbec gentoo org> AuthorDate: Sun May 15 00:21:33 2016 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Sun May 15 00:21:33 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=98c61899 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))