diff --git a/appveyor.yml b/appveyor.yml index b8ef3468..c8b93b6b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 diff --git a/test/windows/local_test.rb b/test/windows/local_test.rb index a97c4599..4ce8d8fd 100644 --- a/test/windows/local_test.rb +++ b/test/windows/local_test.rb @@ -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