xtqqczze
090ad9cb33
Correct case of $PSVersionTable special variable
2020-01-13 19:36:31 +00:00
xtqqczze
e0d2e2aade
Correct case of $PSHOME special variable
2020-01-13 19:35:33 +00:00
xtqqczze
225164037f
Correct case of $PID special variable
2020-01-13 19:34:38 +00:00
xtqqczze
7cb8dc48ea
Correct case of $HOME special variable
2020-01-13 19:33:43 +00:00
xtqqczze
b700c4631b
Correct case of $InformationPreference special variable
2020-01-13 19:31:24 +00:00
xtqqczze
ca4edaddd6
Correct case of $VerbosePreference special variable
2020-01-13 19:29:33 +00:00
xtqqczze
6affae574c
Correct case of $DebugPreference special variable
2020-01-13 19:28:14 +00:00
xtqqczze
9e5bb4eee7
Correct case of $PSModuleAutoLoadingPreference special variable
2020-01-13 19:26:01 +00:00
xtqqczze
4a9d70fdcd
Correct case of $PWD special variable
2020-01-13 19:24:10 +00:00
xtqqczze
b6a687bf21
Correct case of $error special variable
2020-01-13 19:19:39 +00:00
xtqqczze
89e33f5772
Correct case of $Matches special variable
2020-01-13 19:15:17 +00:00
xtqqczze
743983390e
Update pester syntax to v4 ( #11544 )
...
* Capitalize 'Should' command and fix whitespace
```powershell
$_ -ireplace '\s?\|\s?should\b',' | Should'
```
* Capitalise and apply hyphen to 'Not' parameter
```powershell
$_ -ireplace '(\| Should) not\b','$1 -Not'
```
* Capitalise and apply hyphen to 'Be' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?be\b','$1 -Be'
```
* Capitalise and apply hyphen to 'BeExactly' parameter
$_ -ireplace '(\| Should(?: -Not)?) -?beexactly\b','$1 -BeExactly'
* Capitalise and apply hyphen to 'BeGreaterThan' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?begreaterthan\b','$1 -BeGreaterThan'
```
* Use 'BeTrue' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?true\b','$1 -BeTrue'
```
* Use 'BeFalse' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?false\b','$1 -BeFalse'
```
* Capitalise and apply hyphen to 'Match' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?match\b','$1 -Match'
```
* Capitalise and apply hyphen to 'Throw' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?throw\b','$1 -Throw'
```
* Capitalise and apply hyphen to 'BeNullOrEmpty' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?benullorempty\b','$1 -BeNullOrEmpty'
```
* Capitalise 'Because' parameter
```powershell
$_ -ireplace '\s-because\b',' -Because'
```
* Fix 'BeNullOrEmpty'
2020-01-11 20:41:59 +05:00
Paul Higinbotham
b19e2b9d4c
Various test fixes for debugger and remoting ( #11528 )
2020-01-08 16:23:38 -08:00
Ilya
99cf9fd859
Re-balance CI tests ( #11420 )
2020-01-05 13:01:42 +05:00
Ilya
b221c2afa2
Correct pwsh run ( #11486 )
2020-01-05 12:17:41 +05:00
Andrew
ea48e07c48
Added setting to disable implicit WinPS module loading ( #11332 )
2020-01-03 10:32:00 -08:00
Steve Lee
27e1664e52
Add retry to Enter-PSHostProcess test ( #11360 )
2019-12-20 15:35:50 -08:00
Andrew
0c46e3e71d
Added WindowsPS version check for WinCompat ( #11148 )
2019-12-10 10:40:13 -08:00
Andrew
f8a321ae2b
Fix error-reporting in some WinCompat scenarios ( #11259 )
2019-12-09 15:20:40 -08:00
Andrew
b218e6f6cc
Support using non-compatible Windows PowerShell modules in PowerShell Core ( #10973 )
2019-11-18 10:44:55 -08:00
Steve Lee
2e553038c5
Allow pwsh to inherit $env:PSModulePath and enable powershell.exe to start correctly ( #11057 )
2019-11-15 17:29:04 -08:00
Ilya
fe40fbf6e1
Unload test modules ( #11061 )
2019-11-14 17:54:48 -08:00
Steve Lee
ef64321db9
Fix piping more than one CommandInfo to Get-Command ( #10929 )
2019-11-07 11:59:24 -08:00
Marco Schmid
0f9ca32d6d
Adding positional parameter for ScriptBlock when using Invoke-Command with SSH ( #10721 )
2019-10-10 11:29:31 -07:00
Dongbo Wang
f6c220cdd9
Revert the PR "Make ForEach-Object faster for its commonly used scenarios" ( #10485 )
...
It turns out this optimization brings in a breaking change: `$MyInvocation` is different comparing to before the optimization change. I tried to fix the breaking change, but couldn't without introducing more hacky code. Given that, that PR should be reverted.
2019-09-04 22:12:30 -07:00
Dongbo Wang
ff29282713
Make ForEach-Object faster for its commonly used scenarios ( #10454 )
2019-08-30 12:09:19 -07:00
Steve Lee
82e3480bbf
Increase built-with-PowerShell module versions to 7.0.0.0 ( #10356 )
2019-08-22 15:33:30 -07:00
Travis Plunk
11d8cd3230
Make module name matching for get-module -FullyQualifiedName… ( #10329 )
2019-08-12 14:45:08 -07:00
Ilya
5d98b901be
Cleanup workflow code ( #9638 )
...
* Remove WorkFlowInfo type
* Remove condition for UseSharedProcess
* Remove PSWorkflowJob condition
* Remove workflow from ValidateSet
* Remove workflow from CommandTypes enum
* Remove workflow from EventManager
* Remove workflow from Get-Help
* Remove WorkflowFileExtension ".xaml" from ModuleIntrinsics
* Remove WorkflowFileExtension ".xaml" from ModuleCmdletBase
* Remove workflow from PSModuleInfo
* Remove workflow from CustomShellCommands
* Remove workflow from InitialSessionStateProvider
* Remove WriteWorkflowDebugNotSupportedError()
* Remove unneeded resource strings from Module.cs
* Remove xaml from valid extension list
2019-07-07 01:03:03 +05:00
Steve Lee
29e21470d9
Port PowerShell to .NET Core 3.0 ( #9597 )
2019-05-21 13:43:51 +08:00
Steve Lee
a96b4c0404
Update use of "PowerShell Core" to just "PowerShell" ( #9513 )
2019-05-10 15:34:27 -07:00
xtqqczze
a702f68974
Ensure Wait-UntilTrue returns $true in Pester tests ( #9458 )
2019-05-01 17:03:43 -07:00
pougetat
0bd93777fc
Adding tests for Remove-Module ( #9276 )
2019-04-22 10:49:58 -07:00
Steve Lee and Travis Plunk
b8317de469
Update tests to account for when $PSHOME is readonly ( #9279 )
...
Co-Authored-By: SteveL-MSFT <slee@microsoft.com >
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
2019-04-04 23:01:01 -07:00
pougetat
0ee5278b40
Fix Get-Module -FullyQualifiedName option to work with paths ( #9101 )
2019-03-29 15:27:09 -07:00
Dongbo Wang
24d3152f00
Make Start-Job throw terminating exception when -RunAs32 is specified in 64-bit pwsh ( #9143 )
2019-03-18 10:23:29 -07:00
Tyler James Leonhardt
a26d639a47
Fix Enter-PSHostProcess tests flakiness ( #9007 )
2019-03-11 10:41:06 -07:00
Ilya
18f9a36f2a
Pending NamedPipeConnectionInfo test ( #9003 )
...
Related #8971 . Pending the test until we fix a root case of failure.
2019-02-27 14:51:36 -08:00
Tyler James Leonhardt
23eccfd641
[feature] Add -CustomPipeName to pwsh and Enter-PSHostProcess ( #8889 )
...
This allows a user to start PowerShell up with the name of the named pipe that is used for cross process communication (I.e. Enter-PSHostProcess).
2019-02-22 23:40:03 +05:00
Steve Lee
b06ad6aa61
Enable discovering modules that have names same as a culture (e.g. Az) ( #8777 )
...
Here are the major changes:
- Add logic to skip checking for possible resource directories for the first set of sub directories from the top level.
- There was an additional skip if the folder is hidden, rather than doing an explicit attribute check, change the `EnumerationOption` to skip hidden folders.
- Since the `IsPossibleModuleDirectory()` helper now only checks to see if the name matches a culture, renamed to `IsPossibleResourceDirectory()`
- When getting the default modules, we don't search recursively into individual module folders, so removed additional check for possible resource directory.
2019-02-20 12:23:27 -08:00
Bruce Payette
6bc6257a55
Allow .exe files to be used as IL binary modules ( #7281 )
...
Fix for #6741 Allow .exe files to be used as binary modules. Basically anywhere a .dll could be used with modules, you can now use a .exe file. Also did a little clean up, replacing constant strings with the StringLiteral values instead.
2019-02-07 11:24:06 -08:00
Steve Lee
3a8205018e
Fix Enter-PSHostProcess test to wait until runspace is ready before attempting to enter ( #8725 )
...
This fixes CI test failure in Windows build.
2019-01-23 15:07:34 -08:00
Reece Dunham
f29a04c1bd
Remove appveyor environment checks ( #8669 )
2019-01-17 12:33:35 -08:00
Dongbo Wang
c2dfae8ccb
Fix 'FixupFileName' to not load resolved assembly during module discovery ( #8634 )
2019-01-15 16:22:25 -08:00
xtqqczze
6126624b63
Revise use of Start-Sleep cmdlet ( #8633 )
...
* Avoid use of sleep alias (follow-up to #8546 )
* Specify default parameter name
* Shorten overly specific comments
2019-01-15 12:31:52 +05:00
xtqqczze
70de294fea
Remove use of cmdlet aliases from .\test\powershell ( #8546 )
2018-12-28 13:48:23 +05:00
Aditya Patwardhan
f27dfea065
Skip Enter-PSHostProcess tests on Appveyor due to PSReadline issue ( #8317 )
2018-11-20 10:17:33 -08:00
Steve Lee
c5dd3bd2c9
Support 'Get-PSHostProcessInfo' and 'Enter-PSHostProcess' on Unix platforms ( #8232 )
...
There a some differences in support of named pipes for Windows and non-Windows. Named pipes on Unix have a 104 character path limit. On macOS, the `$env:TMPDIR` (on my system) is already 49 characters; corefx adds 12 more. Since AppDomainName isn't really used, changed it from `DefaultAppDomain` to `None` to shorten the name. Need to keep it since Windows PowerShell expects it. Changed `starttime` part of pipe name to 8 hex characters which is to provide uniqueness to the pipe name.
2018-11-15 12:50:04 -08:00
Robert Holt
aa76c6846d
Fix incorrect name check when autoloading required modules ( #8218 )
2018-11-13 14:56:07 -08:00
Paul Higinbotham
d4bf5c87bc
Fix tests running in Azure DevOps ( #8220 )
2018-11-09 15:11:02 -08:00