commit:     11ac8188bfdee030fa233fd4480f35c2d8e3df69
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 20 07:53:46 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Mar 20 07:53:46 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=11ac8188

tests: ensure repeatable results on any host when TRAVIS_OS_NAME is set

Always use the static "cache" of ebuilds provided in the tree, even if
we find a tree when we're testing in Travis mode.

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 tests/atom_explode/dotest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/atom_explode/dotest b/tests/atom_explode/dotest
index 3a45fc1..f47d44f 100755
--- a/tests/atom_explode/dotest
+++ b/tests/atom_explode/dotest
@@ -3,7 +3,7 @@
 . ../init.sh || exit 1
 
 PORTDIR=$(DEBUG=: q -Ch 2>&1 | grep ^PORTDIR | awk '{print $NF}')
-if [[ -d "${PORTDIR}"/metadata/md5-cache ]] &&
+if [[ -z ${TRAVIS_OS_NAME} && -d "${PORTDIR}"/metadata/md5-cache ]] &&
        "$s"/atom-explode.py < /dev/null >& /dev/null ;
 then
        pushd "${PORTDIR}"/metadata/md5-cache >/dev/null || exit $?

Reply via email to