Ctrl-C now cancels karma

This commit is contained in:
Will Marshall
2014-05-02 14:04:43 +10:00
parent 3d06caf1e3
commit d74265e44d

View File

@@ -13,7 +13,9 @@ namespace :karma do
Tempfile.open('karma_unit.js', Rails.root.join('tmp') ) do |f|
f.write unit_js(application_spec_files)
f.flush
system "karma #{command} #{f.path} #{args}"
trap('SIGINT') { puts "Killing Karma"; exit }
exec "karma #{command} #{f.path} #{args}"
#%x{karma #{command} #{f.path} #{args}}
end
end