Build: replace CRLF with LF during minify
[jquery.git] / build / tasks / lib / spawn_test.js
blob1461554117f9ffee4d411ec72a4224f6ac24cff7
1 "use strict";
3 // Run Node with provided parameters: the first one being the Grunt
4 // done function and latter ones being files to be tested.
5 // See the comment in ../node_smoke_tests.js for more information.
6 module.exports = function spawnTest( done, command ) {
7         var spawn = require( "child_process" ).spawn;
9         spawn( command, {
10                 stdio: "inherit",
11                 shell: true
12         } )
13                 .on( "close", function( code ) {
14                         done( code === 0 );
15                 } );