[Pkg-javascript-commits] [node-foreground-child] 11/69: make travis also work on 0.12 and iojs again

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 11:43:02 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-foreground-child.

commit 4e610f1daef456e5794bed6826b6f8305fff79df
Author: Benjamin Coe <ben at npmjs.com>
Date:   Sat Jun 20 14:43:33 2015 -0400

    make travis also work on 0.12 and iojs again
---
 test/basic.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/basic.js b/test/basic.js
index 94a5a74..2b0b83a 100644
--- a/test/basic.js
+++ b/test/basic.js
@@ -100,7 +100,7 @@ t.test('parent emits exit when SIGTERMed', function (t) {
       var out = ''
       child.stdout.on('data', function (c) { out += c })
       child.on('close', function (code, signal) {
-        if (who === 'nobody' || (process.env.TRAVIS && who === 'child'))
+        if (who === 'nobody' || (isZero10OnTravis() && who === 'child'))
           t.equal(signal, null)
         else
           t.equal(signal, 'SIGTERM')
@@ -111,3 +111,7 @@ t.test('parent emits exit when SIGTERMed', function (t) {
   })
   t.end()
 })
+
+function isZero10OnTravis () {
+  return process.env.TRAVIS && /^v0\.10\.[0-9]+$/.test(process.version)
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-foreground-child.git



More information about the Pkg-javascript-commits mailing list