commit:     73fc57a269d214d407ead759f4a2201ec44819b9
Author:     Marc Joliet <marcec <AT> gmx <DOT> de>
AuthorDate: Tue Dec 22 10:40:39 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Dec 12 16:27:22 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73fc57a2

app-text/asciidoc: rework to not need "cd tests"

Package-Manager: portage-2.2.24
Signed-off-by: Marc Joliet <marcec <AT> gmx.de>

 app-text/asciidoc/asciidoc-8.6.9-r3.ebuild | 7 +++----
 app-text/asciidoc/asciidoc-9999.ebuild     | 9 ++++-----
 2 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/app-text/asciidoc/asciidoc-8.6.9-r3.ebuild 
b/app-text/asciidoc/asciidoc-8.6.9-r3.ebuild
index 6a5304d..45e52b7 100644
--- a/app-text/asciidoc/asciidoc-8.6.9-r3.ebuild
+++ b/app-text/asciidoc/asciidoc-8.6.9-r3.ebuild
@@ -70,10 +70,9 @@ src_install() {
 }
 
 src_test() {
-       cd tests || die
-       local -x ASCIIDOC_PY=../asciidoc.py
-       "${PYTHON}" test${PN}.py update || die
-       "${PYTHON}" test${PN}.py run || die
+       local -x ASCIIDOC_PY=asciidoc.py
+       "${PYTHON}" tests/test${PN}.py update || die
+       "${PYTHON}" tests/test${PN}.py run || die
 }
 
 pkg_postinst() {

diff --git a/app-text/asciidoc/asciidoc-9999.ebuild 
b/app-text/asciidoc/asciidoc-9999.ebuild
index 27a930e..fe99476 100644
--- a/app-text/asciidoc/asciidoc-9999.ebuild
+++ b/app-text/asciidoc/asciidoc-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -98,8 +98,7 @@ src_install() {
 }
 
 src_test() {
-       cd tests || die
-       local -x ASCIIDOC_PY=../asciidoc.py
-       "${PYTHON}" test${PN}.py update || die
-       "${PYTHON}" test${PN}.py run || die
+       local -x ASCIIDOC_PY=asciidoc.py
+       "${PYTHON}" tests/test${PN}.py update || die
+       "${PYTHON}" tests/test${PN}.py run || die
 }

Reply via email to