app-shells/bash-completion: Disable tests failing in containers
authorMichał Górny <mgorny@gentoo.org>
Sat, 7 Dec 2019 08:58:08 +0000 (09:58 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 7 Dec 2019 16:58:51 +0000 (17:58 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
app-shells/bash-completion/bash-completion-9999.ebuild

index 2a71e61d56c4725d52f9a4c29a5eee6567b2335e..4fdb9c19f7fd4b53729e46e48115cbaca4b9ddc3 100644 (file)
@@ -92,6 +92,11 @@ src_prepare() {
                eapply "${WORKDIR}"/bashcomp2/bash-completion-blacklist-support.patch
        fi
 
+       # our setup is close enough to container to cause the same tests
+       # to fail
+       sed -i -e '/def in_container/a \
+    return True' test/t/conftest.py || die
+
        eautoreconf
 }