[Pkg-javascript-commits] [node-liftoff] 08/09: change the node executable to nodejs in the test

Paolo Greppi paolog-guest at moszumanska.debian.org
Wed Dec 14 09:06:08 UTC 2016


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

paolog-guest pushed a commit to branch master
in repository node-liftoff.

commit 03bc0a0db5ce16f21c3e9a786ada8795d5278fb5
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Wed Dec 14 08:55:59 2016 +0000

    change the node executable to nodejs in the test
---
 debian/patches/01-nodejs.diff | 54 +++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series         |  1 +
 2 files changed, 55 insertions(+)

diff --git a/debian/patches/01-nodejs.diff b/debian/patches/01-nodejs.diff
new file mode 100644
index 0000000..51a01fc
--- /dev/null
+++ b/debian/patches/01-nodejs.diff
@@ -0,0 +1,54 @@
+Description: Change the node executable to nodejs.
+ sed -i 's/node test/nodejs test/g' test/index.js
+Forwarded: not-needed
+Author: Paolo Greppi <paolo.greppi at libpf.com>
+
+Index: node-liftoff/test/index.js
+===================================================================
+--- node-liftoff.orig/test/index.js
++++ node-liftoff/test/index.js
+@@ -142,9 +142,9 @@ describe('Liftoff', function () {
+     });
+ 
+     it('should skip respawning if process.argv has no values from v8flags in it', function (done) {
+-      exec('node test/fixtures/v8flags.js', function (err, stdout, stderr) {
++      exec('nodejs test/fixtures/v8flags.js', function (err, stdout, stderr) {
+         expect(stderr).to.equal('\n');
+-        exec('node test/fixtures/v8flags_function.js', function (err, stdout, stderr) {
++        exec('nodejs test/fixtures/v8flags_function.js', function (err, stdout, stderr) {
+           expect(stderr).to.equal('\n');
+           done();
+         });
+@@ -153,9 +153,9 @@ describe('Liftoff', function () {
+     });
+ 
+     it('should respawn if process.argv has values from v8flags in it', function (done) {
+-      exec('node test/fixtures/v8flags.js --lazy', function (err, stdout, stderr) {
++      exec('nodejs test/fixtures/v8flags.js --lazy', function (err, stdout, stderr) {
+         expect(stderr).to.equal("--lazy\n");
+-        exec('node test/fixtures/v8flags_function.js --lazy', function (err, stdout, stderr) {
++        exec('nodejs test/fixtures/v8flags_function.js --lazy', function (err, stdout, stderr) {
+           expect(stderr).to.equal("--lazy\n");
+           done();
+         });
+@@ -163,9 +163,9 @@ describe('Liftoff', function () {
+     });
+ 
+     it('should emit a respawn event if a respawn is required', function (done) {
+-      exec('node test/fixtures/v8flags.js', function (err, stdout) {
++      exec('nodejs test/fixtures/v8flags.js', function (err, stdout) {
+         expect(stdout).to.be.empty;
+-        exec('node test/fixtures/v8flags_function.js --lazy', function (err, stdout) {
++        exec('nodejs test/fixtures/v8flags_function.js --lazy', function (err, stdout) {
+           expect(stdout).to.equal('saw respawn\n');
+           done();
+         });
+@@ -173,7 +173,7 @@ describe('Liftoff', function () {
+     });
+ 
+     it('should respawn if process.argv has v8flags with values in it', function (done) {
+-      exec('node test/fixtures/v8flags_value.js --stack_size=2048', function (err, stdout, stderr) {
++      exec('nodejs test/fixtures/v8flags_value.js --stack_size=2048', function (err, stdout, stderr) {
+         expect(stderr).to.equal("--stack_size=2048\n");
+         done();
+       });
diff --git a/debian/patches/series b/debian/patches/series
index d0ce2a3..597e2d5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 00-node_modules.diff
+01-nodejs.diff

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



More information about the Pkg-javascript-commits mailing list