Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nodejs/
Date: Thu, 13 May 2021 21:36:15
Message-Id: 1620941761.6f603892beae75d85e37be7448f9528cb71c2e83.marecki@gentoo
1 commit: 6f603892beae75d85e37be7448f9528cb71c2e83
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 13 21:35:14 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Thu May 13 21:36:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f603892
7
8 net-libs/nodejs-12.22.1-r1: remove test restriction
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 net-libs/nodejs/nodejs-12.22.1-r1.ebuild | 19 +++++++++++--------
13 1 file changed, 11 insertions(+), 8 deletions(-)
14
15 diff --git a/net-libs/nodejs/nodejs-12.22.1-r1.ebuild b/net-libs/nodejs/nodejs-12.22.1-r1.ebuild
16 index 754e3973f54..9c4fe05c005 100644
17 --- a/net-libs/nodejs/nodejs-12.22.1-r1.ebuild
18 +++ b/net-libs/nodejs/nodejs-12.22.1-r1.ebuild
19 @@ -30,6 +30,8 @@ REQUIRED_USE="
20 system-ssl? ( ssl )
21 "
22
23 +RESTRICT="!test? ( test )"
24 +
25 RDEPEND="
26 >=app-arch/brotli-1.0.9
27 >=dev-libs/libuv-1.39.0:=
28 @@ -58,7 +60,6 @@ PATCHES=(
29 "${FILESDIR}"/${PN}-12.22.1-v8_icu69.patch
30 "${FILESDIR}"/${PN}-99999999-llhttp.patch
31 )
32 -RESTRICT="test"
33
34 pkg_pretend() {
35 (use x86 && ! use cpu_flags_x86_sse2) && \
36 @@ -101,12 +102,8 @@ src_prepare() {
37
38 sed -i -e "/'-O3'/d" common.gypi node.gypi || die
39
40 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
41 - # seem sandbox related either (invoking it from a sandbox works fine).
42 - # The issue is that no stdin handle is openened when asked for one.
43 - # It doesn't really belong upstream , so it'll just be removed until someone
44 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
45 - rm test/parallel/test-stdout-close-unref.js || die
46 + # Known-to-fail test of a deprecated, legacy HTTP parser. Just don't bother.
47 + rm -f test/parallel/test-http-transfer-encoding-smuggling-legacy.js
48
49 # debug builds. change install path, remove optimisations and override buildtype
50 if use debug; then
51 @@ -229,8 +226,14 @@ src_install() {
52 }
53
54 src_test() {
55 + # parallel/test-fs-mkdir is known to fail with FEATURES=usersandbox
56 + if has usersandbox ${FEATURES}; then
57 + ewarn "You are emerging ${P} with 'usersandbox' enabled." \
58 + "Expect some test failures or emerge with 'FEATURES=-usersandbox'!"
59 + fi
60 +
61 out/${BUILDTYPE}/cctest || die
62 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
63 + "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} --flaky-tests=dontcare -J message parallel sequential || die
64 }
65
66 pkg_postinst() {