summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHo-Sheng Hsiao <hosheng.hsiao@gmail.com>2012-03-28 19:30:13 -0400
committerHo-Sheng Hsiao <hosheng.hsiao@gmail.com>2012-03-28 19:30:13 -0400
commit125501593717ae7954ab00dfa39a09a02a74f6dc (patch)
tree5f4f1625b59d388922b83f3cb963474828a23509
parent27227e9580b2ad365931f6f2ea7b0c3258f9113f (diff)
downloadchef-125501593717ae7954ab00dfa39a09a02a74f6dc.tar.gz
[CHEF-2994][WINDOWS] Disable stdin specs for windows platform
-rw-r--r--spec/mixlib/shellout/shellout_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/mixlib/shellout/shellout_spec.rb b/spec/mixlib/shellout/shellout_spec.rb
index 7354fdc09c..da8b2b5db4 100644
--- a/spec/mixlib/shellout/shellout_spec.rb
+++ b/spec/mixlib/shellout/shellout_spec.rb
@@ -736,7 +736,7 @@ describe Mixlib::ShellOut do
end
end
- context 'with subprocess reading lots of data from stdin' do
+ context 'with subprocess reading lots of data from stdin', :unix_only => true do
subject { stdout.to_i }
let(:ruby_code) { 'STDOUT.print gets.size' }
let(:options) { { :input => input } }
@@ -770,7 +770,7 @@ describe Mixlib::ShellOut do
end
end
- context 'with subprocess piping lots of data through stdin, stdout, and stderr' do
+ context 'with subprocess piping lots of data through stdin, stdout, and stderr', :unix_only => true do
let(:multiplier) { 20_000 }
let(:expected_output_with) { lambda { |chr| (chr * multiplier) + "#{LINE_ENDING}" + (chr * multiplier) + "#{LINE_ENDING}" } }
# Use regex to work across Ruby versions
@@ -827,7 +827,7 @@ describe Mixlib::ShellOut do
end
end
- context 'when subprocess pauses before writing' do
+ context 'when subprocess pauses before reading from stdin', :unix_only => true do
subject { stdout.to_i }
let(:ruby_code) { 'sleep 0.5; print gets.size ' }
let(:input) { 'c' * 1024 }
@@ -846,7 +846,7 @@ describe Mixlib::ShellOut do
lambda { executed_cmd }.should raise_error(Errno::ENOENT)
end
- context 'with input' do
+ context 'with input', :unix_only => true do
let(:options) { {:input => input } }
let(:input) { "Random input #{rand(1000000)}" }
@@ -856,7 +856,7 @@ describe Mixlib::ShellOut do
end
end
- context 'without input data' do
+ context 'without input data', :unix_only => true do
context 'with subprocess that expects stdin' do
let(:ruby_code) { %q{print STDIN.eof?.to_s} }