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

(WIN-280) add skip() unless pattern to tests #102

Merged
merged 2 commits into from
Mar 15, 2019

Conversation

ThoughtCrhyme
Copy link
Contributor

to facilitate more complete test output from our unit tests.

to facilitate more complete test output from our unit tests.
@@ -384,6 +411,7 @@ def close_stream(stream, style = :inprocess)
end

it "should execute code with a try/catch, receiving the output of Write-Error" do
skip ('Not on Windows platform') unless Puppet::Util::Platform.windows?
Copy link
Contributor

Choose a reason for hiding this comment

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

The indentation level here seems to be different than the rest of them.

@@ -416,7 +445,8 @@ def close_stream(stream, style = :inprocess)
end

it "should be able to execute the code in a catch block when using try/catch" do
result = manager.execute(<<-CODE
skip ('Not on Windows platform') unless Puppet::Util::Platform.windows?
result = manager.execute(<<-CODE
Copy link
Contributor

Choose a reason for hiding this comment

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

Same with these two lines. Indentation level is causing a line diff at 449 where there's not really a difference.

@RandomNoun7 RandomNoun7 merged commit deba7f0 into puppetlabs:master Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants