commit: 6f603892beae75d85e37be7448f9528cb71c2e83
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Thu May 13 21:35:14 2021 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu May 13 21:36:01 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f603892
net-libs/nodejs-12.22.1-r1: remove test restriction
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
net-libs/nodejs/nodejs-12.22.1-r1.ebuild | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/net-libs/nodejs/nodejs-12.22.1-r1.ebuild
b/net-libs/nodejs/nodejs-12.22.1-r1.ebuild
index 754e3973f54..9c4fe05c005 100644
--- a/net-libs/nodejs/nodejs-12.22.1-r1.ebuild
+++ b/net-libs/nodejs/nodejs-12.22.1-r1.ebuild
@@ -30,6 +30,8 @@ REQUIRED_USE="
system-ssl? ( ssl )
"
+RESTRICT="!test? ( test )"
+
RDEPEND="
>=app-arch/brotli-1.0.9
>=dev-libs/libuv-1.39.0:=
@@ -58,7 +60,6 @@ PATCHES=(
"${FILESDIR}"/${PN}-12.22.1-v8_icu69.patch
"${FILESDIR}"/${PN}-99999999-llhttp.patch
)
-RESTRICT="test"
pkg_pretend() {
(use x86 && ! use cpu_flags_x86_sse2) && \
@@ -101,12 +102,8 @@ src_prepare() {
sed -i -e "/'-O3'/d" common.gypi node.gypi || die
- # Avoid a test that I've only been able to reproduce from emerge. It
doesnt
- # seem sandbox related either (invoking it from a sandbox works fine).
- # The issue is that no stdin handle is openened when asked for one.
- # It doesn't really belong upstream , so it'll just be removed until
someone
- # with more gentoo-knowledge than me (jbergstroem) figures it out.
- rm test/parallel/test-stdout-close-unref.js || die
+ # Known-to-fail test of a deprecated, legacy HTTP parser. Just don't
bother.
+ rm -f test/parallel/test-http-transfer-encoding-smuggling-legacy.js
# debug builds. change install path, remove optimisations and override
buildtype
if use debug; then
@@ -229,8 +226,14 @@ src_install() {
}
src_test() {
+ # parallel/test-fs-mkdir is known to fail with FEATURES=usersandbox
+ if has usersandbox ${FEATURES}; then
+ ewarn "You are emerging ${P} with 'usersandbox' enabled." \
+ "Expect some test failures or emerge with
'FEATURES=-usersandbox'!"
+ fi
+
out/${BUILDTYPE}/cctest || die
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel
sequential || die
+ "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} --flaky-tests=dontcare
-J message parallel sequential || die
}
pkg_postinst() {