commit: 7a8be263e6dff1bddd8df185358465db14122266
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Sat May 1 23:03:46 2021 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Sat May 1 23:12:27 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a8be263
net-libs/nodejs: allow running tests for v14
...but print a warning if FEATURES=usersandbox is set because it is
known to make one test fail.
For v16, add the same warning but keep the restriction in place
- the test suite fails because "npm is not ready for this release".
v12 has got its own problems with the test suite so leave it be,
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
net-libs/nodejs/nodejs-14.16.1-r1.ebuild | 9 +++++++--
net-libs/nodejs/nodejs-16.0.0-r1.ebuild | 8 +++++++-
2 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/net-libs/nodejs/nodejs-14.16.1-r1.ebuild
b/net-libs/nodejs/nodejs-14.16.1-r1.ebuild
index 0cc7ac183ee..37454244851 100644
--- a/net-libs/nodejs/nodejs-14.16.1-r1.ebuild
+++ b/net-libs/nodejs/nodejs-14.16.1-r1.ebuild
@@ -22,8 +22,7 @@ REQUIRED_USE="inspector? ( icu ssl )
system-icu? ( icu )
system-ssl? ( ssl )"
-# FIXME: test-fs-mkdir fails with "no such file or directory". Investigate.
-RESTRICT="test"
+RESTRICT="!test? ( test )"
RDEPEND=">=app-arch/brotli-1.0.9
>=dev-libs/libuv-1.40.0:=
@@ -223,6 +222,12 @@ 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
"${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel
sequential || die
}
diff --git a/net-libs/nodejs/nodejs-16.0.0-r1.ebuild
b/net-libs/nodejs/nodejs-16.0.0-r1.ebuild
index e9b170f229d..b9358387895 100644
--- a/net-libs/nodejs/nodejs-16.0.0-r1.ebuild
+++ b/net-libs/nodejs/nodejs-16.0.0-r1.ebuild
@@ -22,7 +22,7 @@ REQUIRED_USE="inspector? ( icu ssl )
system-icu? ( icu )
system-ssl? ( ssl )"
-# FIXME: test-fs-mkdir fails with "no such file or directory". Investigate.
+# As of 16.0.0, tests fail because "npm is not ready for this release"
RESTRICT="test"
RDEPEND=">=app-arch/brotli-1.0.9
@@ -217,6 +217,12 @@ 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
"${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel
sequential || die
}