Skip to content

Commit

Permalink
Explicitly copy LC_ALL into the environment
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsymons committed Nov 7, 2014
1 parent ccfec5c commit 1794fbe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/guard/kitchen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module Guard
class Kitchen < Guard
def start
::Guard::UI.info("Guard::Kitchen is starting")
cmd = Mixlib::ShellOut.new("kitchen create", :timeout => 10800)
cmd = Mixlib::ShellOut.new("kitchen create", :timeout => 10800, :env => { 'LC_ALL' => ENV['LC_ALL'] })
cmd.live_stream = STDOUT
cmd.run_command
begin
Expand All @@ -37,7 +37,7 @@ def start

def stop
::Guard::UI.info("Guard::Kitchen is stopping")
cmd = Mixlib::ShellOut.new("kitchen destroy", :timeout => 10800)
cmd = Mixlib::ShellOut.new("kitchen destroy", :timeout => 10800, :env => { 'LC_ALL' => ENV['LC_ALL'] })
cmd.live_stream = STDOUT
cmd.run_command
begin
Expand All @@ -57,7 +57,7 @@ def reload

def run_all
::Guard::UI.info("Guard::Kitchen is running all tests")
cmd = Mixlib::ShellOut.new("kitchen verify", :timeout => 10800)
cmd = Mixlib::ShellOut.new("kitchen verify", :timeout => 10800, :env => { 'LC_ALL' => ENV['LC_ALL'] })
cmd.live_stream = STDOUT
cmd.run_command
begin
Expand All @@ -80,7 +80,7 @@ def run_on_changes(paths)
end
if suites.length > 0
::Guard::UI.info("Guard::Kitchen is running suites: #{suites.keys.join(', ')}")
cmd = Mixlib::ShellOut.new("kitchen verify '(#{suites.keys.join('|')})-.+' -p", :timeout => 10800)
cmd = Mixlib::ShellOut.new("kitchen verify '(#{suites.keys.join('|')})-.+' -p", :timeout => 10800, :env => { 'LC_ALL' => ENV['LC_ALL'] })
cmd.live_stream = STDOUT
cmd.run_command
begin
Expand All @@ -94,7 +94,7 @@ def run_on_changes(paths)
end
else
::Guard::UI.info("Guard::Kitchen is running converge for all suites")
cmd = Mixlib::ShellOut.new("kitchen converge", :timeout => 10800)
cmd = Mixlib::ShellOut.new("kitchen converge", :timeout => 10800, :env => { 'LC_ALL' => ENV['LC_ALL'] })
cmd.live_stream = STDOUT
cmd.run_command
begin
Expand Down

0 comments on commit 1794fbe

Please sign in to comment.