Files
nodejs15/fix_ci_tests.patch

131 lines
5.2 KiB
Diff

Author: Adam Majer <amajer@suse.de>
Date: Dec 20 09:18:49 UTC 2017
Summary: Fix CI unit tests framework for OBS building
Index: node-git.f09c033faf/test/parallel/test-module-loading-globalpaths.js
===================================================================
--- node-git.f09c033faf.orig/test/parallel/test-module-loading-globalpaths.js
+++ node-git.f09c033faf/test/parallel/test-module-loading-globalpaths.js
@@ -11,6 +11,9 @@ const { addLibraryPath } = require('../c
addLibraryPath(process.env);
+common.skip('hardcoded global paths');
+return;
+
if (process.argv[2] === 'child') {
console.log(require(pkgName).string);
} else {
Index: node-git.f09c033faf/test/parallel/test-tls-env-bad-extra-ca.js
===================================================================
--- node-git.f09c033faf.orig/test/parallel/test-tls-env-bad-extra-ca.js
+++ node-git.f09c033faf/test/parallel/test-tls-env-bad-extra-ca.js
@@ -37,7 +37,7 @@ fork(__filename, opts)
// TODO(addaleax): Make `SafeGetenv` work like `process.env`
// encoding-wise
if (!common.isWindows) {
- const re = /Warning: Ignoring extra certs from.*no-such-file-exists-🐢.* load failed:.*No such file or directory/;
+ const re = /Warning: Ignoring extra certs from.*no-such-file-exists-.* load failed:.*/;
assert(re.test(stderr), stderr);
}
}))
Index: node-git.f09c033faf/test/parallel/test-tls-passphrase.js
===================================================================
--- node-git.f09c033faf.orig/test/parallel/test-tls-passphrase.js
+++ node-git.f09c033faf/test/parallel/test-tls-passphrase.js
@@ -224,7 +224,7 @@ server.listen(0, common.mustCall(functio
})).unref();
const errMessagePassword = common.hasOpenSSL3 ?
- /Error: PEM_read_bio_PrivateKey/ : /bad decrypt/;
+ /Error: PEM_read_bio_PrivateKey/ : /bad (decrypt|password read)/;
// Missing passphrase
assert.throws(function() {
@@ -255,7 +255,7 @@ assert.throws(function() {
}, errMessagePassword);
const errMessageDecrypt = common.hasOpenSSL3 ?
- /Error: PEM_read_bio_PrivateKey/ : /bad decrypt/;
+ /Error: PEM_read_bio_PrivateKey/ : /bad (decrypt|password read)/;
// Invalid passphrase
assert.throws(function() {
Index: node-git.f09c033faf/test/parallel/test-repl-envvars.js
===================================================================
--- node-git.f09c033faf.orig/test/parallel/test-repl-envvars.js
+++ node-git.f09c033faf/test/parallel/test-repl-envvars.js
@@ -2,12 +2,14 @@
// Flags: --expose-internals
-require('../common');
+const common = require('../common');
const stream = require('stream');
const REPL = require('internal/repl');
const assert = require('assert');
const inspect = require('util').inspect;
+common.skip('Not running test in OBS');
+
const tests = [
{
env: {},
Index: node-git.f09c033faf/test/common/index.mjs
===================================================================
--- node-git.f09c033faf.orig/test/common/index.mjs
+++ node-git.f09c033faf/test/common/index.mjs
@@ -44,6 +44,7 @@ const {
expectsError,
skipIfInspectorDisabled,
skipIf32Bits,
+ skipIfWorker,
getArrayBufferViews,
getBufferSources,
disableCrashOnUnhandledRejection,
@@ -90,6 +91,7 @@ export {
expectsError,
skipIfInspectorDisabled,
skipIf32Bits,
+ skipIfWorker,
getArrayBufferViews,
getBufferSources,
disableCrashOnUnhandledRejection,
Index: node-git.f09c033faf/Makefile
===================================================================
--- node-git.f09c033faf.orig/Makefile
+++ node-git.f09c033faf/Makefile
@@ -510,7 +510,8 @@ test-ci-js: | clear-stalled
.PHONY: test-ci
# Related CI jobs: most CI tests, excluding node-test-commit-arm-fanned
test-ci: LOGLEVEL := info
-test-ci: | clear-stalled bench-addons-build build-addons build-js-native-api-tests build-node-api-tests doc-only
+test-ci: | clear-stalled bench-addons-build build-addons build-js-native-api-tests build-node-api-tests
+ strip $(NODE_EXE)
out/Release/cctest --gtest_output=xml:out/junit/cctest.xml
$(PYTHON) tools/test.py $(PARALLEL_ARGS) -p tap --logfile test.tap \
--mode=$(BUILDTYPE_LOWER) --flaky-tests=$(FLAKY_TESTS) \
@@ -689,7 +690,8 @@ apidocs_json = $(addprefix out/,$(apidoc
apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
tools/doc/node_modules: tools/doc/package.json
- @if [ "$(shell $(node_use_openssl))" != "true" ]; then \
+ echo "Skipping tools/doc/node_modules"
+# @if [ "$(shell $(node_use_openssl))" != "true" ]; then \
echo "Skipping tools/doc/node_modules (no crypto)"; \
else \
cd tools/doc && $(call available-node,$(run-npm-ci)) \
Index: node-git.f09c033faf/test/parallel/test-crypto-dh.js
===================================================================
--- node-git.f09c033faf.orig/test/parallel/test-crypto-dh.js
+++ node-git.f09c033faf/test/parallel/test-crypto-dh.js
@@ -189,7 +189,7 @@ assert.throws(() => {
dh3.computeSecret('');
}, { message: common.hasOpenSSL3 ?
'error:02800066:Diffie-Hellman routines::invalid public key' :
- 'Supplied key is too small' });
+ /Supplied key is too small|error:05066066:Diffie-Hellman routines:compute_key:invalid public key/ });
// Create a shared using a DH group.
const alice = crypto.createDiffieHellmanGroup('modp5');