mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Ctrl-C now cancels karma
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user