app-text/asciidoc: rework to not need "cd tests"
authorMarc Joliet <marcec@gmx.de>
Tue, 22 Dec 2015 10:40:39 +0000 (11:40 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 12 Dec 2016 16:27:22 +0000 (17:27 +0100)
Package-Manager: portage-2.2.24
Signed-off-by: Marc Joliet <marcec@gmx.de>
app-text/asciidoc/asciidoc-8.6.9-r3.ebuild
app-text/asciidoc/asciidoc-9999.ebuild

index 6a5304d3309a1f6d81fbdd212f467428ab410678..45e52b73a0399c68e50509c9aa6f4602f998860e 100644 (file)
@@ -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() {
index 27a930e58f13e6166b8ceb3f004033f8fff461fa..fe99476282085e60875541a491e8744e9ac0de2c 100644 (file)
@@ -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
 }