Skip to content

Commit

Permalink
ignore progress for appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Aug 16, 2016
1 parent 050e3e7 commit 739d7b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ install:
- gem install --local bundler --quiet --no-document
- bundler --version
- ruby -r rubygems -e "p Gem.path"
- ps: Write-Output "Echo"

build_script:
- bundle install --path=vendor/bundle --without integration tools
Expand Down
4 changes: 2 additions & 2 deletions test/windows/local_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
end

it 'run echo test' do
cmd = conn.run_command('Write-Output "test"')
cmd = conn.run_command('$ProgressPreference=’SilentlyContinue’;Write-Output "test"')
cmd.stdout.must_equal "test\r\n"
cmd.stderr.must_equal ''
end

it 'use powershell piping' do
cmd = conn.run_command("New-Object -Type PSObject | Add-Member -MemberType NoteProperty -Name A -Value (Write-Output 'PropertyA') -PassThru | Add-Member -MemberType NoteProperty -Name B -Value (Write-Output 'PropertyB') -PassThru | ConvertTo-Json")
cmd = conn.run_command("$ProgressPreference=’SilentlyContinue’;New-Object -Type PSObject | Add-Member -MemberType NoteProperty -Name A -Value (Write-Output 'PropertyA') -PassThru | Add-Member -MemberType NoteProperty -Name B -Value (Write-Output 'PropertyB') -PassThru | ConvertTo-Json")
cmd.stdout.must_equal "{\r\n \"A\": \"PropertyA\",\r\n \"B\": \"PropertyB\"\r\n}\r\n"
cmd.stderr.must_equal ''
end
Expand Down

0 comments on commit 739d7b2

Please sign in to comment.