diff options
author | danielsdeleo <dan@opscode.com> | 2013-10-18 11:58:57 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-10-18 11:58:57 -0700 |
commit | 1fd6feb2cd43203b4327318a4a101993ed9c02d9 (patch) | |
tree | 4b3f8b50e4f27ad6ccc9fa9173230c18d114360c /lib/chef/mixin/command.rb | |
parent | a8eabfdc15547203e2c326680752e67c17c430a9 (diff) | |
download | chef-1fd6feb2cd43203b4327318a4a101993ed9c02d9.tar.gz |
Mark popen4 tests "volatile" to prevent spurious Ci failures
Diffstat (limited to 'lib/chef/mixin/command.rb')
-rw-r--r-- | lib/chef/mixin/command.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/chef/mixin/command.rb b/lib/chef/mixin/command.rb index 2cc25e149e..fb75980f8f 100644 --- a/lib/chef/mixin/command.rb +++ b/lib/chef/mixin/command.rb @@ -24,6 +24,26 @@ require 'etc' class Chef module Mixin + + #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + # NOTE: + # The popen4 method upon which all the code here is based has a race + # condition where it may fail to read all of the data written to stdout and + # stderr after the child process exits. The tests for the code here + # occasionally fail because of this race condition, so they have been + # tagged "volatile". + # + # This code is considered deprecated, so it should not need to be modified + # frequently, if at all. HOWEVER, if you do modify the code here, you must + # explicitly enable volatile tests: + # + # bundle exec rspec spec/unit/mixin/command_spec.rb -t volatile + # + # In addition, you should make a note that tests need to be run with + # volatile tests enabled on any pull request or bug report you submit with + # your patch. + #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + module Command extend self |