Sergei Vorobev
3363b248a0
Fix code errors found by PVS-Studio ( #2695 )
...
* Fix errors found by PSV-studio analyzer
http://www.viva64.com/en/b/0447/
* Remove old redundent comment
errorAsts is passed by ref
2016-11-17 11:20:04 -08:00
Steve Lee (POWERSHELL)
f01bdaffca
added Expand-ZipArchive back to support psv4 scenario
2016-11-17 09:41:21 -08:00
Steve Lee (POWERSHELL)
9e3482da6f
addressing code review feedback
...
- check for git before using
- check for opencover.console in path
- fixed path to code coverage build of PS
2016-11-17 09:32:24 -08:00
Sergei Vorobev
ce26bca8db
Re-enable Add-Type coreclr tests ( #2705 )
2016-11-16 21:23:57 -08:00
Steve Lee (POWERSHELL)
bf6ae9b3d6
added type to returned objects
...
replaced expand-ziparchive with call to Archive module
added defaults to location of opencover.xml, opencover installation, powershell.exe, and location of tests
updated error messages with corrective action
replaced System.Net.WebClient call (not available on coreclr) with invoke-webrequest
scoped change of executionpolicy to process when starting pester to avoid error if system policy is less restrictive
updated version of module
2016-11-16 17:09:16 -08:00
Alessandro Pilotti
15ed125c4a
Fixes deprecated syscall issue on macOS 10.12 ( #2633 ) ( #2675 )
...
syscall() has been deprecated and is not available on macOS 10.12.
2016-11-16 16:26:46 -08:00
Dongbo Wang
7e581be7c4
Add HelpUri for Get-Uptime ( #2688 )
...
* Add HelpUri for Get-Uptime
* Update online help test data to include Get-Uptime
2016-11-16 11:13:09 -08:00
iSazonov
40437ba809
Correct samples in testing-guidelines ( #2691 )
...
Replace 'Start-PSPester -Directory' with 'Start-PSPester -Path'
2016-11-16 10:37:26 -08:00
iSazonov
47be2c372a
Write-Information accept objects from the pipeline ( #2680 )
...
* Write-Information accept objects from the pipeline
* Add test
* Fix test
Remove unneeded runspace.
* Clear streams before each test case
Streams of the PowerShell instance might have records from other test runs. Clear the streams before each test case.
2016-11-15 22:41:34 -08:00
Dongbo Wang
80101176d1
Merge pull request #2450 from vors/native-pipe
...
Refactor 'NativeCommandProcessor' to provide streaming behavior for running native commands in a pipeline.
2016-11-15 18:00:02 -08:00
Sergei Vorobev
4868cee9cf
Remove over-optimization in NativeCommandProcessor.DequeueProcessOutput
2016-11-15 17:44:00 -08:00
Sergei Vorobev
825352faa3
Separate Done() and Dispose() in ProcessInputWriter NativeCommandProcessor.cs
2016-11-15 17:16:44 -08:00
Steve Lee
58e2755709
Update issue-management.md ( #2673 )
...
* Update issue-management.md
* Update issue-management.md
fixed link to PR code review
2016-11-15 16:54:07 -08:00
Sergei Vorobev
32837f06ee
Trying to make 'native command lifecycle' test unflaky
...
Also move it to the Feature category
2016-11-15 14:49:39 -08:00
Sergei Vorobev
1508526a3f
Fix recursive Done() problem in steppable pipeline finalization
2016-11-15 14:49:39 -08:00
Sergei Vorobev
7914c75504
Fix bug in native pipe, where we loose End() output
2016-11-15 14:49:39 -08:00
Sergei Vorobev
0ce50a82a7
Resurect Xml serialization logic inside ProcessInputWriter
2016-11-15 14:49:39 -08:00
Sergei Vorobev
e038360087
Prettify NativeCommmandProcessor.cs
...
- Move ProcessOutputHandler outside of NativeCommmandProcessor
- Remove redundent ConsumeAvailableNativeProcessOutput() blocking call
2016-11-15 14:49:39 -08:00
Sergei Vorobev
616c15556f
Re-shuffle minishell tests
2016-11-15 14:49:39 -08:00
Sergei Vorobev
c0bda7a55a
Add native pipelines entry to changelog.md
2016-11-15 14:49:39 -08:00
Sergei Vorobev
f0a4a7d821
Replace spin-lock by a proper BlockingCollection in NativeCommandProcessor
2016-11-15 14:49:39 -08:00
Sergei Vorobev
89782f92d2
Clean-up unnesesary fields from NativeCommandProcessor
2016-11-15 14:49:39 -08:00
Sergei Vorobev
a6fc5387c2
Add a code to handle finished process correctly on Unix
2016-11-15 14:49:39 -08:00
Sergei Vorobev
9658e62682
Add a test for broken linux pipe in native pipeline
2016-11-15 14:49:39 -08:00
Sergei Vorobev
666bf887d7
Use StreamWriter.Dispose() instead of Close()
2016-11-15 14:49:39 -08:00
Sergei Vorobev
df6662aa2e
Fix flushing mechanics for input writer in native pipe
2016-11-15 14:49:39 -08:00
Sergei Vorobev
584aec7c92
Add motivation example for the native pipeline changes
2016-11-15 14:49:39 -08:00
Sergei Vorobev
747f5ff164
Make native pipeline consume available output in the process block
2016-11-15 14:49:39 -08:00
Sergei Vorobev
6acc1e0629
Add error stream and information stream tests
...
for native pipes
2016-11-15 14:49:39 -08:00
Sergei Vorobev
b93042670f
Improve pipeline for native commands
...
- Start native process in Prepare() instead of Complete()
in NativeCommandProcessor.
- Remove unneeded input, output, error threads. Replaced by
simpler primitives.
2016-11-15 14:49:39 -08:00
Sergei Vorobev
a05fffd9dc
Add a minishell clixml tests
2016-11-15 14:49:39 -08:00
Matt Wrock
e1db642c7f
Ensure *nix platforms add an initial / rooted drive ( #2679 )
2016-11-15 10:27:12 -08:00
Jason Shirk (POWERSHELL)
ca2dce3537
Improve coverage for Write-Information output
2016-11-14 14:03:30 -08:00
Jason Shirk (POWERSHELL)
0d3021c5ca
Delay initialize some properties in InformationRecord
...
An InformationRecord instance is created when calling Write-Host,
but many of the properties aren't read.
It can be expensive to initialize some of those properties, so
the code has been changed to initialize those properties on first access.
2016-11-14 14:03:30 -08:00
Jason Shirk (POWERSHELL)
acdf1c1d44
Fix LengthInBufferCells test for downlevel
...
When running on systems that do not support a virtual terminal,
the tests was incorrectly assuming escape sequences were removed.
The fix is to expect different results depending on whether or not
the host supports virtual terminal mode.
2016-11-14 13:59:43 -08:00
nmbradford
25005a0ba0
Fix WebRequest failure to handle missing ContentType in response header ( #2666 )
...
If a response to invoke-webrequest does not set the content type in the
response header, an object not set exception is thrown in
WebResponseHelper.CoreClr.cs. Updated to set contenttype = null.
2016-11-14 13:35:07 -08:00
Dongbo Wang
fe9064868e
Fix PackageManagement issue in the latest Alpah12 on Linux ( #2665 )
...
* Registry.LocalMachine throws on non-windows platform.
* address cr feedback
2016-11-14 12:51:36 -08:00
Sergei Vorobev
0228d7e50f
Fixed reference to 0-backlog in CONTRIBUTING.md ( #2681 )
2016-11-14 11:30:54 -08:00
Sergei Vorobev
dbc084537a
Remove default value for version from Install-Dotnet, so it's controlled only in Start-PSBootstrap
2016-11-14 11:27:38 -08:00
Sergei Vorobev
f5ca586118
Temporarely pin dotnet obtain script url
2016-11-14 11:27:38 -08:00
Jianyun Tao
260b6af5fe
address cr feedback
2016-11-14 10:16:15 -08:00
Jianyun Tao
24d720ebc1
Merge remote-tracking branch 'upstream/master'
2016-11-14 10:08:47 -08:00
Steve Lee
b4738c8711
Update CONTRIBUTING.md
...
fix link
2016-11-14 10:05:07 -08:00
Steve Lee
ddb1af7fbd
Update CONTRIBUTING.md
...
Fixed reference to 0-backlog
2016-11-14 09:08:02 -08:00
Bryce Milton - MSFT
8bc8930959
Refactoring Linux Nighly Dockerfiles to in-line Bootstrap.ps1 code
...
Provides simpler usability by making the dockerfiles self-contained.
2016-11-11 21:02:52 -08:00
Bryce Milton - MSFT
69c9228671
Updating to Alpha 12 and correcting 'reslease' typo
2016-11-11 21:02:52 -08:00
Bryce Milton
f56806b614
Updating to use Alpha-11 URLs\SHA
...
Updated URLs to point at Alpha 11 URLs, reduced number of intermediate
stages, simplified logging code, and added a new %PSCORE% environment
variable to make it easier to launch from other shells
2016-11-11 21:02:52 -08:00
Bryce Milton
ebc0dfe575
Release versions of WindowsServerCore and Nano DockerFiles
...
Embedded POWERSHELL_* ARGs will need to be updated when new releases
become available
2016-11-11 21:02:52 -08:00
Dongbo Wang
dad2c7d155
Update releasing doc to include steps to create Linux/macOS packages and NuGet packages ( #2663 )
...
* Update releasing.md with package creation steps for Linux and macOS
* Add documentation for creating NuGet Packages
* Minor fixes
2016-11-11 17:13:04 -08:00
Jason Shirk
bd9e49d8d9
Make Out-Null fast ( #2629 )
...
People use Out-Null despite much faster alternatives:
$null = Do-Stuff
[void] = Do-Stuff
Do-Stuff > $null
This change makes Out-Null work in roughly the same say as the above.
The optimization is to detect that we're calling the built-in Out-Null
cmdlet when invoking a pipeline from script (the change won't have any
effect in the PowerShell api). If we detect Out-Null, we rewrite the
pipe to look similar to `Do-Stuff > $null`.
2016-11-11 11:29:53 -08:00