Skip to content
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

Fix regressions introduced by PR 882 #891

Merged
merged 3 commits into from
Feb 20, 2018

Conversation

bergmeister
Copy link
Collaborator

@bergmeister bergmeister commented Feb 16, 2018

PR Summary

When running the tests locally on Windows PowerShell after having pulled the latest changes in the development branch from PR #882, I noticed a regression (4 failed tests and 15 skipped tests);

  • $IsWindows returns false on Windows PowerShell because this automatic variable was only introduced in PowerShell Core. I have missed this detail during the review and therefore this was partially my fault.
  • As a result of the above, some tests were skipped and flagged as a failure and therefore some test code was reverted to its previous state before the PR in question so that it passes again (tested locally on Windows PowerShell 5.1).
  • A variable rename caused the AppVeyor script to not throw and make the build red if there was a failure

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets. Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
    • Use the present tense and imperative mood when describing your changes
  • Summarized changes
  • NA User facing documentation needed
  • Change is not breaking
  • NA Make sure you've added a new test if existing tests do not effectively test the code changed
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

- $IsWindows returns false on Windows PowerShell because this automatic variable was only introduced in PowerShell Core
- some reverts of test code that did not fail due to the above.
@bergmeister bergmeister changed the title Fix regressions introduced by PR 882 WIP Fix regressions introduced by PR 882 Feb 16, 2018
@bergmeister bergmeister changed the title WIP Fix regressions introduced by PR 882 Fix regressions introduced by PR 882 Feb 16, 2018
@bergmeister bergmeister self-assigned this Feb 16, 2018
@@ -97,7 +97,7 @@ Describe "Test importing correct customized rules" {
$customizedRulePath.Count | Should Be 1
}

It "will show the custom rule when given a rule folder path with trailing backslash" -skip:(!$IsWindows){
It "will show the custom rule when given a rule folder path with trailing backslash" -skip:$($IsLinux -or $IsMacOS) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the $ is unneeded

@JamesWTruher JamesWTruher merged commit 22c062c into PowerShell:development Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants