Giter VIP home page Giter VIP logo

Comments (2)

honzajavorek avatar honzajavorek commented on June 1, 2024

Looks like it's because the PID search isn't very bulletproof. If my working folder contains string dredd-hooks, then any running process will be matched and killed.

$ ps axu | grep 'dredd-hooks' | grep ruby
honzajavorek    43086 100.0  0.1  2471588  16520 s003  R+    3:39PM   4:40.68 ruby /Users/honzajavorek/Workspace/dredd-hooks-ruby/bin/dredd-hooks-ruby
honzajavorek    43036   0.0  0.2  2483232  30648 s003  S+    3:39PM   0:00.66 ruby /Users/honzajavorek/Workspace/dredd-hooks-ruby/vendor/bundle/ruby/2.0.0/bin/cucumber

Workaround:

puts "Killing server..."
system "for i in `ps axu | grep 'server.rb' | grep ruby | awk '{print $2}'`; do kill -9 $i; done > /dev/null 2>&1"
puts "Killing handler..."
system "for i in `ps axu | grep 'dredd-hooks' | grep -v 'cucumber' | grep ruby | awk '{print $2}'`; do kill -9 $i; done > /dev/null 2>&1"

(See the grep -v 'cucumber' I added.) With such fix the tests run and pass correctly.

from dredd-hooks-template.

ApiaryBot avatar ApiaryBot commented on June 1, 2024

🎉 This issue has been resolved in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

from dredd-hooks-template.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.