-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Test changes needed for running in a container #7869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,7 +48,8 @@ Describe 'Online help tests for PowerShell Core Cmdlets' -Tags "CI" { | |
| Describe 'Get-Help -Online opens the default web browser and navigates to the cmdlet help content' -Tags "Feature" { | ||
|
|
||
| $skipTest = [System.Management.Automation.Platform]::IsIoT -or | ||
| [System.Management.Automation.Platform]::IsNanoServer | ||
| [System.Management.Automation.Platform]::IsNanoServer -or | ||
| $env:__InContainer -eq 1 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where is this defined?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a comment about
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code to open help in a browser is pretty simple. Perhaps rather than skipping these tests in non-desktop environments, we should instead have a test hook to validate that it hit the right code path or even start a test executable passed the URL as an argument?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there is a test hook here already, and it is used to validate all the uris. This is a single test which starts the browser.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm ok with this for now |
||
|
|
||
| # this code is a workaround for issue: https://github.com/PowerShell/PowerShell/issues/3079 | ||
| if((-not ($skipTest)) -and $IsWindows) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.