summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2014-05-16 13:09:59 -0400
committerBryan McLellan <btm@loftninjas.org>2014-05-16 13:09:59 -0400
commit619c9e23b43e54d35c88f59ce5c6478e7bdd2f61 (patch)
tree0d789cd398b4bb16ca65591f3b77e75aa15a2ebf
parent091c0ed0730f08b7eb9ebb37bd9d7938e1048c9d (diff)
parent9df8d35c83125f8bac689091c658e466223df977 (diff)
downloadmixlib-shellout-619c9e23b43e54d35c88f59ce5c6478e7bdd2f61.tar.gz
Merge pull request #48 from thcipriani/patch-1
Correct spelling of "exceeded" Obvious Fix.
-rw-r--r--lib/mixlib/shellout/unix.rb6
-rw-r--r--spec/mixlib/shellout_spec.rb10
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/mixlib/shellout/unix.rb b/lib/mixlib/shellout/unix.rb
index aac28f0..b8f4a17 100644
--- a/lib/mixlib/shellout/unix.rb
+++ b/lib/mixlib/shellout/unix.rb
@@ -346,12 +346,12 @@ module Mixlib
def reap_errant_child
return if attempt_reap
- @terminate_reason = "Command execeded allowed execution time, process terminated"
- logger.error("Command execeded allowed execution time, sending TERM") if logger
+ @terminate_reason = "Command exceeded allowed execution time, process terminated"
+ logger.error("Command exceeded allowed execution time, sending TERM") if logger
Process.kill(:TERM, child_pgid)
sleep 3
attempt_reap
- logger.error("Command execeded allowed execution time, sending KILL") if logger
+ logger.error("Command exceeded allowed execution time, sending KILL") if logger
Process.kill(:KILL, child_pgid)
reap
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb
index 277393b..5dcb6a7 100644
--- a/spec/mixlib/shellout_spec.rb
+++ b/spec/mixlib/shellout_spec.rb
@@ -927,8 +927,8 @@ describe Mixlib::ShellOut do
shell_cmd.stdout.should include("nanana cant hear you")
shell_cmd.status.termsig.should == 9
- log_output.string.should include("Command execeded allowed execution time, sending TERM")
- log_output.string.should include("Command execeded allowed execution time, sending KILL")
+ log_output.string.should include("Command exceeded allowed execution time, sending TERM")
+ log_output.string.should include("Command exceeded allowed execution time, sending KILL")
end
end
@@ -1030,7 +1030,7 @@ describe Mixlib::ShellOut do
let(:ruby_code) { "STDIN.close; sleep 0.5; STDOUT.puts :win" }
let(:options) { { :input => "Random data #{rand(100000)}" } }
- it 'should not hang or lose outupt' do
+ it 'should not hang or lose output' do
stdout.should eql("win#{LINE_ENDING}")
end
end
@@ -1038,7 +1038,7 @@ describe Mixlib::ShellOut do
context 'with subprocess that closes stdout and continues writing to stderr' do
let(:ruby_code) { "STDOUT.close; sleep 0.5; STDERR.puts :win" }
- it 'should not hang or lose outupt' do
+ it 'should not hang or lose output' do
stderr.should eql("win#{LINE_ENDING}")
end
end
@@ -1046,7 +1046,7 @@ describe Mixlib::ShellOut do
context 'with subprocess that closes stderr and continues writing to stdout' do
let(:ruby_code) { "STDERR.close; sleep 0.5; STDOUT.puts :win" }
- it 'should not hang or lose outupt' do
+ it 'should not hang or lose output' do
stdout.should eql("win#{LINE_ENDING}")
end
end