Permalink
Browse files

Added more information to cli unit tests about the child process spaw…

…ning environment.
  • Loading branch information...
1 parent 2f2ef82 commit 8593bea919bc962ce0470b3975bed80eb257a933 mosen committed Apr 10, 2012
Showing with 4 additions and 0 deletions.
  1. +1 −0 lib/queues.js
  2. +3 −0 test/cli.test.js
View
@@ -13,6 +13,7 @@ var path = require('path'),
* @return {Queue} Instance of a queue with component build tasks added.
*/
exports._createSourceQueue = function(component, queueOpts) {
+
var q = new Queue('collect source files', queueOpts),
component_sourcefiles = component.sourcefiles,
View
@@ -19,6 +19,9 @@ module.exports = {
var test_dir = path.resolve(path.join(__dirname, './fixtures/test_skip')),
build_dir = path.resolve(path.join(__dirname, './fixtures/build'));
+ console.log("Spawning ybuild as a child process");
+ console.log("node " + cli_path);
+ console.log("CWD: " + test_dir);
var ybuild = child_process.spawn('node', [cli_path, '.'], { cwd: test_dir, env: process.env });
attachConsole(ybuild);

0 comments on commit 8593bea

Please sign in to comment.