[Pkg-javascript-commits] [node-cross-spawn-async] 06/07: Add node-rimraf build dependency for tests & patch the new test
Ross Gammon
ross-guest at moszumanska.debian.org
Wed Dec 23 12:50:59 UTC 2015
This is an automated email from the git hooks/post-receive script.
ross-guest pushed a commit to branch master
in repository node-cross-spawn-async.
commit ec364fa3f1a2b6ee27d08cee92f511bb9e453676
Author: Ross Gammon <rossgammon at mail.dk>
Date: Wed Dec 23 13:31:42 2015 +0100
Add node-rimraf build dependency for tests & patch the new test
The new test needed the usual node > nodejs conversion for Debian
---
debian/control | 3 ++-
debian/patches/test_fix.patch | 9 +++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 772c09d..c71fca4 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,8 @@ Build-Depends: debhelper (>= 9),
node-glob,
mocha,
node-which,
- node-expect.js
+ node-expect.js,
+ node-rimraf
Standards-Version: 3.9.6
Homepage: https://github.com/IndigoUnited/node-cross-spawn-async#readme
Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-cross-spawn-async.git
diff --git a/debian/patches/test_fix.patch b/debian/patches/test_fix.patch
index 98b797f..1dbb349 100644
--- a/debian/patches/test_fix.patch
+++ b/debian/patches/test_fix.patch
@@ -15,6 +15,15 @@ Author: Ross Gammon <rossgammons at mail.dk>
var file = __dirname + '/fixtures/shebang_noenv';
fs.writeFileSync(file, '#!' + nodejs + '\n\nprocess.stdout.write(\'shebang works!\');', {
+@@ -100,7 +100,7 @@
+ });
+
+ it('should support shebang in executables with extensions', function (next) {
+- fs.writeFileSync(__dirname + '/tmp/shebang.js', '#!/usr/bin/env node\n\nprocess.stdout.write(\'shebang with extension\');', { mode: parseInt('0777', 8) });
++ fs.writeFileSync(__dirname + '/tmp/shebang.js', '#!/usr/bin/env nodejs\n\nprocess.stdout.write(\'shebang with extension\');', { mode: parseInt('0777', 8) });
+ process.env.PATH = path.normalize(__dirname + '/tmp/') + path.delimiter + process.env.PATH;
+
+ buffered(__dirname + '/tmp/shebang.js', function (err, data, code) {
@@ -152,7 +152,7 @@
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-cross-spawn-async.git
More information about the Pkg-javascript-commits
mailing list