summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Joliet <marcec@gmx.de>2015-12-22 11:40:39 +0100
committerMichał Górny <mgorny@gentoo.org>2016-12-12 17:27:22 +0100
commit73fc57a269d214d407ead759f4a2201ec44819b9 (patch)
tree17f33317d14461f07719d863dcdb8244a47a0023 /app-text/asciidoc
parentsys-apps/man-pages: mark 4.08 arm64/m68k/s390/sh stable (diff)
downloadgentoo-73fc57a269d214d407ead759f4a2201ec44819b9.tar.gz
gentoo-73fc57a269d214d407ead759f4a2201ec44819b9.tar.bz2
gentoo-73fc57a269d214d407ead759f4a2201ec44819b9.zip
app-text/asciidoc: rework to not need "cd tests"
Package-Manager: portage-2.2.24 Signed-off-by: Marc Joliet <marcec@gmx.de>
Diffstat (limited to 'app-text/asciidoc')
-rw-r--r--app-text/asciidoc/asciidoc-8.6.9-r3.ebuild7
-rw-r--r--app-text/asciidoc/asciidoc-9999.ebuild9
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 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
}