From: Marc Joliet Date: Tue, 22 Dec 2015 10:40:39 +0000 (+0100) Subject: app-text/asciidoc: rework to not need "cd tests" X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=73fc57a269d214d407ead759f4a2201ec44819b9;p=gentoo.git app-text/asciidoc: rework to not need "cd tests" Package-Manager: portage-2.2.24 Signed-off-by: Marc Joliet --- diff --git a/app-text/asciidoc/asciidoc-8.6.9-r3.ebuild b/app-text/asciidoc/asciidoc-8.6.9-r3.ebuild index 6a5304d3309a..45e52b73a039 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 27a930e58f13..fe9947628208 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 }