aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-02-13 20:02:43 -0500
committerMike Frysinger <vapier@gentoo.org>2016-02-13 20:02:43 -0500
commitd858df8a53df7e43bc6c2ece945cff7104ae762b (patch)
tree3072e95c79eaa91c007f184edda30e50fea75a44
parentqdepends: parse args as atoms (diff)
downloadportage-utils-d858df8a53df7e43bc6c2ece945cff7104ae762b.tar.gz
portage-utils-d858df8a53df7e43bc6c2ece945cff7104ae762b.tar.bz2
portage-utils-d858df8a53df7e43bc6c2ece945cff7104ae762b.zip
tests: atom_explode: get tests running againv0.61
Change to extracting PORTDIR from q itself rather than portageq. This is just putting off the full fix (walking all repos), but it gets things running/passing again. After some recent changes, we also need to update the python code so its output matches the q code. Otherwise all the tests fail as none of the lines match. URL: https://bugs.gentoo.org/567336 Reported-by: tka@kamph.org
-rwxr-xr-xtests/atom_explode/atom-explode.py2
-rwxr-xr-xtests/atom_explode/dotest2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/atom_explode/atom-explode.py b/tests/atom_explode/atom-explode.py
index 03ea0bf..d28aaed 100755
--- a/tests/atom_explode/atom-explode.py
+++ b/tests/atom_explode/atom-explode.py
@@ -11,7 +11,7 @@ def doit(a):
PV = cpv[2]
PR_int = cpv[3]
P = PN + "-" + PV
- PVR = P + "-" + cpv[3]
+ PVR = PV + "-" + cpv[3]
print(a+" -> "+CATEGORY+" / ["+P+"] "+PN+" - "+PVR+" ["+PV+"] ["+PR_int+"]")
for a in sys.argv[1:]:
diff --git a/tests/atom_explode/dotest b/tests/atom_explode/dotest
index 41d282a..e852bc0 100755
--- a/tests/atom_explode/dotest
+++ b/tests/atom_explode/dotest
@@ -2,7 +2,7 @@
. ../init.sh || exit 1
-: ${PORTDIR:=$(portageq envvar PORTDIR)}
+PORTDIR=$(DEBUG=: q -Ch 2>&1 | grep ^PORTDIR | awk '{print $NF}')
pushd "${PORTDIR}"/metadata/md5-cache >/dev/null || { echo SKIPPED; exit 0 ; }
if [[ $1 == -v ]] ; then