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

Explicitly copy LC_ALL into the environment #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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