Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message should specify which process failed to spawn when a process fails to spawn #200

Open
msabramo opened this issue Jan 5, 2015 · 0 comments

Comments

@msabramo
Copy link
Contributor

msabramo commented Jan 5, 2015

vagrant@vagrant-ubuntu-trusty-64:~/hipache$ NO_ETCD=true NO_ZOOKEEPER=true npm test

> hipache@0.4.0 test /home/vagrant/hipache
> istanbul test _mocha --report html -- test/**/*.js --reporter spec --timeout 4000

ERR! Test No etcd server on this machine! No tests, then.
ERR! Test No zookeeper server on this machine! No tests, then.


  1) "before all" hook

  0 passing (2s)
  1 failing

  1)  "before all" hook:
     Uncaught Error: spawn ENOENT
      at errnoException (child_process.js:988:11)
      at Process.ChildProcess._handle.onexit (child_process.js:779:34)



npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0

Which process is failing to spawn?

msabramo added a commit to msabramo/hipache that referenced this issue Jan 6, 2015
Before:

    [marca@marca-mac2 hipache]$ NO_ETCD=true NO_REDIS=true NO_MEMCACHED=true gulp test:drivers
    ...
      1)  "before all" hook:
         Uncaught Error: spawn ENOENT
          at errnoException (child_process.js:1011:11)
          at Process.ChildProcess._handle.onexit (child_process.js:802:34)

After:

    [marca@marca-mac2 hipache]$ NO_ETCD=true NO_REDIS=true NO_MEMCACHED=true gulp test:drivers
    ...
      1)  "before all" hook:
         Error: Failed to spawn "zkServer.sh start-foreground,/Users/marca/zookeeper/zoo.cfg" (Error: spawn ENOENT)
          at null.<anonymous> (/Users/marca/dev/git-repos/hipache/test/fixtures/servers/generic.js:51:34)
          at ChildProcess.emit (events.js:95:17)
          at Process.ChildProcess._handle.onexit (child_process.js:818:12)

Refs: hipache#200
msabramo added a commit to msabramo/hipache that referenced this issue Jan 6, 2015
Before:

    [marca@marca-mac2 hipache]$ NO_ETCD=true NO_REDIS=true NO_MEMCACHED=true gulp test:drivers
    ...
      1)  "before all" hook:
         Uncaught Error: spawn ENOENT
          at errnoException (child_process.js:1011:11)
          at Process.ChildProcess._handle.onexit (child_process.js:802:34)

After:

    [marca@marca-mac2 hipache]$ NO_ETCD=true NO_REDIS=true NO_MEMCACHED=true gulp test:drivers
    ...
      1)  "before all" hook:
         Uncaught Error: Failed to spawn "zkServer.sh start-foreground,/Users/marca/zookeeper/zoo.cfg" (Error: spawn ENOENT)
          at null.<anonymous> (/Users/marca/dev/git-repos/hipache/test/fixtures/servers/generic.js:51:34)
          at ChildProcess.emit (events.js:95:17)
          at Process.ChildProcess._handle.onexit (child_process.js:818:12)

Refs: hipache#200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant