Commit Graph
1732 Commits
Author SHA1 Message Date
Aditya Patwardhan dec48d5478 Merged PR 11699: Bump to .NET 3.1.5 and update dependencies
Bump to .NET 3.1.5 and update dependencies
2020-06-09 21:53:16 +00:00
Robert Holt 92a737b3c1 Ensure null-coalescing LHS is evaluated only once (#12667)
# Conflicts:
#	src/System.Management.Automation/engine/parser/Compiler.cs
2020-06-08 14:15:04 -07:00
HumanEquivalentUnit 359cdeef56 Change Get-FileHash to close file handles before writing output (#12474)
# Conflicts:
#	src/Microsoft.PowerShell.Commands.Utility/commands/utility/GetHash.cs
2020-06-08 14:00:28 -07:00
Travis Plunk 1866438393 Merged PR 11551: Use dotnet core 3.1.202
Use dotnet core 3.1.202
2020-05-13 02:05:44 +00:00
Travis Plunk ea6132becb Fix a test failure (#12636) 2020-05-12 18:00:02 -07:00
Ilya 62e638d4fa Fix NRE in csv commands (#12281) 2020-04-20 13:30:13 -07:00
Andrew bd91f48f66 Fix WinCompat module loading to treat Core edition modules higher priority (#12269) 2020-04-20 13:29:50 -07:00
Dongbo Wang f9106ae7fe Discover assemblies loaded by 'Assembly.Load(byte[])' and 'Assembly.LoadFile' (#12203)
* Fix regression: pwsh should discover assemblies loaded by 'Assembly.Load(byte[])' and 'Assembly.LoadFile'
2020-04-20 13:29:32 -07:00
Joel Sallow (/u/ta11ow) a49beb66c6 Fix <img /> detection regex in web cmdlets (#12099)
# Conflicts:
#	test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1
2020-04-20 13:28:16 -07:00
Andrew 07221e3dc5 Miscellaneous minor updates to WinCompat (#11980)
* Filter PSModulePath when starting PS 5.1. Removing PS-Core-specific paths from PSModulePath of WinCompat process (Windows PS).
* Make implicit WinCompat respect NoClobber and Scope parameters
* Add ErrorAction.Ignore when searching for WinPSCompatSession
# Conflicts:
#	src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs
2020-04-20 13:21:23 -07:00
Steve Lee 8830011b34 Fix ConciseView where error message is wider than window width and doesn't have whitespace (#11880)
# Conflicts:
#	src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs
#	test/powershell/engine/Formatting/ErrorView.Tests.ps1
2020-04-20 13:17:31 -07:00
Tyler James Leonhardt ff1605553e Use Environment.NewLine instead of hard-coded linefeed in ParseError.ToString (#11746) 2020-04-20 13:11:37 -07:00
Dongbo Wang 331eac8fbc Make Test-Connection always use the default synchronization context for sending ping requests (#11517) 2020-04-20 13:11:15 -07:00
Steve Lee f587d6a796 Fix ConciseView to not show the line information within the error messages (#11952) 2020-02-26 16:14:48 -08:00
James Truher [MSFT] 4b152d15d1 Make sure to test whether we skip a test using consistent logic (#11892) 2020-02-19 15:40:14 -08:00
Aditya Patwardhan 652fb1eb89 Skip directory creation at root test on macOS (#11878) 2020-02-18 16:15:21 -08:00
Aditya Patwardhan fb3ac87850 Update Get-PlatformInfo helper and tests for Debian 10, 11 and CentOS 8 (#11842)
# Conflicts:
#	test/powershell/Modules/Microsoft.PowerShell.Management/Test-Connection.Tests.ps1
#	test/powershell/Modules/PSDesiredStateConfiguration/MOF-Compilation.Tests.ps1
2020-02-13 18:54:19 -08:00
Andrew 7aaa54fd7c Sync current directory in WinCompat remote session (#11809)
# Conflicts:
#	src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs
2020-02-11 13:48:31 -08:00
James Truher [MSFT] 600f058080 Handle cases where CustomEvent was not initially sent (#11807) 2020-02-11 13:46:08 -08:00
Dongbo Wang 16bfd1e5d7 Fix how COM objects are enumerated (#11795) 2020-02-11 13:46:08 -08:00
Paul Higinbotham a04276af61 Fix Invoke-Command missing error on session termination. (#11586) 2020-02-11 13:46:08 -08:00
Travis Plunk df5d7b1235 Merged PR 10911: Add tracesource and serialization primitives to the allowed assembly list 2020-02-10 22:58:28 +00:00
Andrew 038adccddb Add WinCompat deny list support using a setting in powershell.… (#11726)
# Conflicts:
#	build.psm1
#	src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs
2020-02-10 13:19:08 -08:00
Ilya ebf6abe294 Correct pwsh run (#11486)
# Conflicts:
#	test/powershell/Modules/Microsoft.PowerShell.Core/CompatiblePSEditions.Module.Tests.ps1
2020-02-10 13:16:15 -08:00
Travis Plunk 380cd15eed Update to CredScan v2 (#11765) 2020-02-10 13:12:09 -08:00
Robert Holt ff0aaec90d Restore SetBreakpoints API (#11622)
* Restore SetBreakpoints API

* Remove default values in API methods

* Fix inheriting APIs

* Correct further comments

* Fix breakpoint API use issues

* Fix breakpoint API tests

# Conflicts:
#	test/powershell/SDK/Breakpoint.Tests.ps1
2020-02-10 13:12:09 -08:00
Steve Lee fe4e9f0141 Fix unnecessary trimming of line resulting in incorrect indexi… (#11670) 2020-02-10 13:12:08 -08:00
Paul Higinbotham cd8fc6c88d Fix for JEA user role in virtual account (#11668) 2020-02-07 16:16:33 -08:00
Dongbo Wang 75cbd314b1 Do not resolve types from assemblies that are loaded in separate AssemblyLoadContext (#11088) 2020-02-07 16:16:33 -08:00
Dongbo Wang d99b325861 Revert the PRs that made DBNull.Value and NullString.Value treated as $null (#11584) 2020-01-14 16:47:34 -08:00
Aditya Patwardhan 076ad77d14 Test fixes for various platforms (#11579) 2020-01-14 12:51:04 -08:00
Andrew 463aff44e1 Mark System32-PSModulePath test as pending (#11576) 2020-01-14 12:42:53 -08:00
Steve Lee 3cc0a5d767 Support expanding ~ in $env:PATH when doing command discovery (#11552) 2020-01-14 12:24:22 -08:00
James Truher [MSFT] 5e88662794 Test fixes for failing tests (#11541) 2020-01-14 12:23:10 -08:00
Paal Braathen 7f31fd5551 Use ISOWeek for week numbers in Get-Date (#11536) 2020-01-14 12:22:52 -08:00
Paul Higinbotham f4c759c42f Various test fixes for debugger and remoting (#11528) 2020-01-14 12:22:30 -08:00
James Truher [MSFT] 945dede1f7 DSC test fixes for Alpine and Raspbian (#11508) 2020-01-14 12:21:39 -08:00
Aditya Patwardhan 30884966ba Normalize line endings before comparing string in tests (#11499) 2020-01-14 12:21:26 -08:00
Ilya 67fb8f17a4 Port GetProcessorArchitecture() (#11046) 2020-01-14 12:07:37 -08:00
Thomas Nieto 4279500997 Remove RequireLicenseAcceptance default value (#11512) 2020-01-09 16:03:35 -08:00
Paul Higinbotham 90ac0cf85a Fix SSH remoting test to work on all platforms (#11500) 2020-01-09 16:02:27 -08:00
spongemike2 125d5b97f4 Make web cmdlets skip processing the content headers with a null or empty value for backward compatibility (#11421) 2020-01-09 16:00:05 -08:00
Steve Lee fdcf087654 Don't format exceptions that aren't ErrorRecords (#11415)
* In one of the previous PRs for ConciseView, System.Exception was incorrectly added to the typenames handled by the ErrorRecord formatting. This results in just Exception objects written to the console to not be rendered since the ErrorRecord formatting didn't handle this situation. Fix is to remove the line to add that type putting it back to how it was previously. 

* Also made the handling of ErrorRecord a bit more robust just in case Exception.Message doesn't exist nor a Message property.
2020-01-09 15:59:06 -08:00
Steve Lee c9d64597af Add trailing line number to filename for ConciseView (#11391) 2020-01-09 15:57:25 -08:00
Aditya Patwardhan 48a7646cf7 Make null member access tests as string to avoid parsing errors (#11385)
* Make null member access tests as string to avoid parsing errors

* Add PSNullConditionalOperators feature to testmetadata.json

* Add Parsing tests to be skipped

* Add tabcompletion tests
2020-01-09 15:45:28 -08:00
Steve Lee eb80aeaeae Move Set-StrictMode to outer scriptblock for ErrorView (#11381) 2020-01-09 15:40:53 -08:00
Aditya Patwardhan 94b215d3dd Fix test failing when UnixStat feature is disabled (#11370) 2020-01-09 15:39:57 -08:00
Steve Lee b663e396a3 Add retry to Enter-PSHostProcess test (#11360) 2020-01-09 15:38:30 -08:00
Joel Sallow (/u/ta11ow) 2fe9b2ffe9 Test-Connection: Fallback to hop IP Address on -Traceroute without -ResolveDestination (#11335) 2020-01-09 15:36:53 -08:00
Andrew 65429120d9 Added setting to disable implicit WinPS module loading (#11332) 2020-01-09 15:36:12 -08:00