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

(maint) Update PDK::Test::Unit.parallel_with_no_tests? for PSH #216 changes #356

Merged
merged 1 commit into from
Nov 23, 2017

Conversation

rodjek
Copy link
Contributor

@rodjek rodjek commented Nov 22, 2017

The behavour of the parallel_spec rake task in puppetlabs_spec_helper changed in puppetlabs/puppetlabs_spec_helper#216. This PR updates our logic to detect no tests vs fail in pdk test unit --parallel.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 92.486% when pulling 41478c9 on rodjek:psh-216-fix into 232862b on puppetlabs:master.

!result[:exit_code].zero? &&
result[:stderr].strip =~ %r{Pass files or folders to run$}
((!result[:exit_code].zero? && result[:stderr].strip =~ %r{Pass files or folders to run$}) ||
result[:stderr].strip =~ %r{No files for parallel_spec to run against$})
Copy link
Contributor

Choose a reason for hiding this comment

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

If this gets much more complicated it may merit some small predicate helper methods to increase legibility

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it's getting a bit nasty isn't it? :)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 92.587% when pulling 2d8be3f on rodjek:psh-216-fix into 232862b on puppetlabs:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 92.587% when pulling 2e4faf3 on rodjek:psh-216-fix into 232862b on puppetlabs:master.

@rodjek rodjek merged commit 8f61011 into puppetlabs:master Nov 23, 2017
@rodjek rodjek deleted the psh-216-fix branch November 23, 2017 00:26
@chelnak chelnak added the maintenance Internal maintenance work that shouldn't appear in the changelog label Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Internal maintenance work that shouldn't appear in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants