File fix_ci_tests.patch of Package nodejs6.12088

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-v6.14.4/test/parallel/test-module-loading-globalpaths.js
===================================================================
--- node-v6.14.4.orig/test/parallel/test-module-loading-globalpaths.js
+++ node-v6.14.4/test/parallel/test-module-loading-globalpaths.js
@@ -7,6 +7,9 @@ const fs = require('fs');
 const child_process = require('child_process');
 const pkgName = 'foo';
 
+common.skip('hardcoded global paths');
+return;
+
 if (process.argv[2] === 'child') {
   console.log(require(pkgName).string);
 } else {
Index: node-v6.14.4/test/parallel/test-dgram-multicast-set-interface-lo.js
===================================================================
--- node-v6.14.4.orig/test/parallel/test-dgram-multicast-set-interface-lo.js
+++ node-v6.14.4/test/parallel/test-dgram-multicast-set-interface-lo.js
@@ -4,6 +4,9 @@ const assert = require('assert');
 const dgram = require('dgram');
 const util = require('util');
 
+common.skip('skipping on OBS');
+return;
+
 if (common.inFreeBSDJail) {
   common.skip('in a FreeBSD jail');
   return;
Index: node-v6.14.4/test/parallel/test-tls-passphrase.js
===================================================================
--- node-v6.14.4.orig/test/parallel/test-tls-passphrase.js
+++ node-v6.14.4/test/parallel/test-tls-passphrase.js
@@ -200,7 +200,7 @@ server.listen(0, common.mustCall(functio
   }, common.mustCall());
 })).unref();
 
-const errMessagePassword = /bad decrypt/;
+const errMessagePassword = /bad decrypt|bad password read/;
 
 // Missing passphrase
 assert.throws(function() {
Index: node-v6.14.4/test/parallel/test-repl-envvars.js
===================================================================
--- node-v6.14.4.orig/test/parallel/test-repl-envvars.js
+++ node-v6.14.4/test/parallel/test-repl-envvars.js
@@ -8,6 +8,9 @@ const REPL = require('internal/repl');
 const assert = require('assert');
 const inspect = require('util').inspect;
 
+common.skip('skipping on OBS');
+return;
+
 const tests = [
   {
     env: {},
Index: node-v6.14.4/test/common/index.js
===================================================================
--- node-v6.14.4.orig/test/common/index.js
+++ node-v6.14.4/test/common/index.js
@@ -277,6 +277,8 @@ exports.spawnSyncPwd = function(options)
 };
 
 exports.platformTimeout = function(ms) {
+  ms = 10 * ms; // OBS overhead
+
   if (process.features.debug)
     ms = 2 * ms;