X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Fgrunt-legacy-util%2Ftest%2Ffixtures%2FGruntfile-execArgv.js;fp=node_modules%2Fgrunt-legacy-util%2Ftest%2Ffixtures%2FGruntfile-execArgv.js;h=7ad3db0227d77b11c1b25e371ea408ac18e133a8;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/grunt-legacy-util/test/fixtures/Gruntfile-execArgv.js b/node_modules/grunt-legacy-util/test/fixtures/Gruntfile-execArgv.js new file mode 100644 index 000000000..7ad3db022 --- /dev/null +++ b/node_modules/grunt-legacy-util/test/fixtures/Gruntfile-execArgv.js @@ -0,0 +1,17 @@ +module.exports = function(grunt) { + + var util = require('../../'); + + grunt.registerTask('default', function(text) { + var done = this.async(); + util.spawn({ + grunt: true, + args: ['--gruntfile', 'Gruntfile-execArgv-child.js'], + }, function(err, result, code) { + var matches = result.stdout.match(/^(OUTPUT: .*)/m); + console.log(matches ? matches[1] : ''); + done(); + }); + }); + +};