From c27b5750eeb793a9c5d7d98a6021e9c9056a3ec6 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Wed, 1 Aug 2018 14:15:55 +0200 Subject: tests/atom_explode: deal with Python not finding portage, bug #661762 Check if the python atom check is going to work, if not, fall back to full pre-cooked files. If we just check for a portage tree in the filesystem, it may be that we end up without python support for portage, which would then obviously mismatch. Bug: https://bugs.gentoo.org/661762 --- tests/atom_explode/dotest | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/atom_explode/dotest b/tests/atom_explode/dotest index e911ab5d..3a45fc1a 100755 --- a/tests/atom_explode/dotest +++ b/tests/atom_explode/dotest @@ -3,7 +3,9 @@ . ../init.sh || exit 1 PORTDIR=$(DEBUG=: q -Ch 2>&1 | grep ^PORTDIR | awk '{print $NF}') -if [[ -d "${PORTDIR}"/metadata/md5-cache ]] ; then +if [[ -d "${PORTDIR}"/metadata/md5-cache ]] && + "$s"/atom-explode.py < /dev/null >& /dev/null ; +then pushd "${PORTDIR}"/metadata/md5-cache >/dev/null || exit $? if [[ $1 == -v ]] ; then -- cgit v1.2.3-65-gdbad