summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
* add spec test for EBADF in closing fdsLamont Granquist2013-06-141-0/+14
|
* More robust pipe checks and tests.sersut2013-04-171-4/+10
|
* Clean inherited file descriptors from the parent while forking subprocess.sersut2013-04-161-3/+13
|
* Update check for local system use a downcased computer nameMoser, Kevin2013-01-221-1/+2
|
* Add tests for running as different user in windowsMoser, Kevin2013-01-222-3/+70
|
* Add default value check for with_logon, domain, & userMoser, Kevin2013-01-151-0/+3
|
* [RSPEC] Use Rspec 3 metadataHo-Sheng Hsiao2012-05-103-13/+14
|
* [CHEF-2994][WINDOWS] Added edge cases to specs for Utils.should_run_under_cmd?()Ho-Sheng Hsiao2012-05-101-0/+50
|
* [CHEF-2994][WINDOWS] Expanded Utils.should_run_under_cmd?() to work like ↵Ho-Sheng Hsiao2012-05-101-16/+44
| | | | Ruby system()
* [CHEF-2994][WINDOWS] Fixed Utils.which()Ho-Sheng Hsiao2012-05-102-0/+32
| | | | - Factored out Utils.should_run_under_cmd? (simple case)
* [CHEF-2994][RSPEC] Fixed specs to run under UnixHo-Sheng Hsiao2012-05-101-1/+1
| | | | Ignore Windows unit test
* [CHEF-2994][WINDOWS] Mixlib::ShellOut::Windows should push input into stdinHo-Sheng Hsiao2012-05-101-9/+10
|
* [CHEF-2994][WINDOWS] Factored out utility methods to ↵Ho-Sheng Hsiao2012-05-101-2/+3
| | | | Mixlib::ShellOut::Windows::Utils
* [CHEF-2994][WINDOWS] Added specs for valid exe at location with unquoted exeHo-Sheng Hsiao2012-05-101-0/+25
|
* [CHEF-2994][WINDOWS] Added specs for empty commandHo-Sheng Hsiao2012-05-101-0/+9
|
* [CHEF-2994][WINDOWS] Added unit tests for invalid batch filesHo-Sheng Hsiao2012-05-101-0/+10
|
* [CHEF-2994][WINDOWS] Added unit tests for valid batch filesHo-Sheng Hsiao2012-05-101-0/+17
|
* [CHEF-2994][WINDOWS] Added unit tests for private method #command_to_runHo-Sheng Hsiao2012-05-101-0/+113
| | | | | | Fixed bug with quoted .cmd files Fixed bug with finding .bat in the middle of the filename
* [CHEF-2994][WINDOWS] Fixed remaining failing tests on windowsHo-Sheng Hsiao2012-05-101-11/+18
|
* [RSPEC] Moved shellout_spec up to make room for unit testsHo-Sheng Hsiao2012-05-101-0/+0
|
* [CHEF-2994][WINDOWS] Fixed multiple quotes for non batch filesHo-Sheng Hsiao2012-05-101-0/+18
|
* [CHEF-2994][WINDOWS] Fixed multiple quotes in commandHo-Sheng Hsiao2012-05-101-9/+23
| | | | | | | CMD.exe does not parse multiple quotes well unless the whole thing is wrapped up in quotes. Workaround: https://github.com/opscode/mixlib-shellout/pull/2#issuecomment-4837859 http://ss64.com/nt/syntax-esc.html
* [CHEF-2994][WINDOWS] Disable stdin specs for windows platformHo-Sheng Hsiao2012-03-281-5/+5
|
* [CHEF-2994][RB192] Turn off rubygems for child ruby processesHo-Sheng Hsiao2012-03-282-4/+16
| | | | Sometimes, gems are not sane and trigger deprecation notice. Rather than dealing with that, we disable gems completely.
* [CHEF-2994][RB187] Got specs passing for Ruby 1.8.7 (Linux)Ho-Sheng Hsiao2012-03-271-4/+6
|
* [CHEF-2994][RSPEC] ShellOut#run_command when subprocess pauses before ↵Ho-Sheng Hsiao2012-03-261-0/+12
| | | | reading input should not hang or lose output
* [CHEF-2994][RSPEC] ShellOut#run_command when subprocess closes prematurely ↵Ho-Sheng Hsiao2012-03-261-0/+13
| | | | with input should raise broken pipe exception
* [CHEF-2994][RSPEC] ShellOut#run_command when exiting with invalid code with ↵Ho-Sheng Hsiao2012-03-261-0/+13
| | | | input data shuld handle exit code gracefully
* [CHEF-2994][RSPEC] ShellOut#run_command when execution fails with input ↵Ho-Sheng Hsiao2012-03-261-0/+9
| | | | should recover the error message
* [CHEF-2994][RSPEC] ShellOut#run_command with subprocess that pipes lots of ↵Ho-Sheng Hsiao2012-03-261-0/+24
| | | | data through stdin, stdout, and stderr should not hang
* [CHEF-2994][RSPEC] ShellOut#run_command with subprocess that reads lots of ↵Ho-Sheng Hsiao2012-03-261-0/+12
| | | | data from stdin should not hang
* [CHEF-2994][RSPEC] ShellOut#run_command with subprocess that closes stdin ↵Ho-Sheng Hsiao2012-03-261-0/+9
| | | | and continues writing to stdout should not hang or lose output
* [CHEF-2994][STDIN] Child process should accept stdin input if input is specifiedHo-Sheng Hsiao2012-03-261-0/+13
|
* [CHEF-2994][STDIN] ShellOut.new should accept input as an optionHo-Sheng Hsiao2012-03-261-2/+7
|
* [CHEF-2994][STDIN] ShellOut#input should set the input optionHo-Sheng Hsiao2012-03-261-0/+10
|
* [CHEF-2994][STDIN] Option :input should be set to nil by defaultHo-Sheng Hsiao2012-03-261-0/+1
|
* [CHEF-2994][RSPEC] ShellOut should be able to handle commands with stdin ↵Ho-Sheng Hsiao2012-03-261-1/+22
| | | | file pipes
* [RSPEC] Consolidated mini-dsl globallyHo-Sheng Hsiao2012-03-231-32/+41
| | | | Made things more consistent.
* [RSPEC] Consolidated / dry up let(:ruby_code)Ho-Sheng Hsiao2012-03-231-20/+14
|
* [RSPEC/DOC] Clarified comments about windows evironmental localeHo-Sheng Hsiao2012-03-231-3/+1
|
* [RSPEC] Refactored spec for #format_for_exceptionHo-Sheng Hsiao2012-03-231-11/+18
|
* [RSPEC] Refactored spec for closing stdout before closing stderrHo-Sheng Hsiao2012-03-231-15/+22
|
* [RSPEC] Refactored spec for closing stdin when we have no input data for itHo-Sheng Hsiao2012-03-231-4/+11
|
* [RSPEC] Refactored spec for recovering error messagesHo-Sheng Hsiao2012-03-231-3/+5
|
* [RSPEC] Refactored spec for setting LC_ALL to nilHo-Sheng Hsiao2012-03-231-10/+20
|
* [RSPEC] Refactored spec for handling localeHo-Sheng Hsiao2012-03-231-23/+32
|
* [RSPEC] Refactored spec for subprocess that pauses efore writingHo-Sheng Hsiao2012-03-231-5/+8
|
* [RSPEC] Refactored spec for subprocess that writes, pauses, and writesHo-Sheng Hsiao2012-03-231-5/+8
|
* [RSPEC] Refactored spec for dumping lots of data through STDOUT and STDERRHo-Sheng Hsiao2012-03-231-13/+18
|
* [RSPEC] Refactored spec for subprocess that closes one pipe and continues ↵Ho-Sheng Hsiao2012-03-231-5/+16
| | | | writing in the other