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

Support CI options for parallel_spec #199

Merged
merged 2 commits into from
Jul 14, 2017

Conversation

austb
Copy link
Contributor

@austb austb commented Jul 14, 2017

No description provided.

args = ['-t', 'rspec'].
concat(Rake::FileList[pattern].to_a)
args = ['-t', 'rspec']
args = args.push('--').concat(ENV['CI_SPEC_OPTIONS'].split 'j').push('--') unless ENV['CI_SPEC_OPTIONS'].nil?
Copy link
Contributor

Choose a reason for hiding this comment

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

These next two lines don't need the = assignment, push and concat should modify the object directly.

@puppetcla
Copy link

CLA signed by all contributors.

args = ['-t', 'rspec'].
concat(Rake::FileList[pattern].to_a)
args = ['-t', 'rspec']
args.push('--').concat(ENV['CI_SPEC_OPTIONS'].split(' ')).push('--') unless ENV['CI_SPEC_OPTIONS'].nil?
Copy link
Contributor

Choose a reason for hiding this comment

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

The guard needs to also protect against an empty string or string of only whitespace. Otherwise you'll just be adding -- to args without actual args.

@bmjen bmjen merged commit 14aff01 into puppetlabs:master Jul 14, 2017
@austb austb deleted the parallel_spec_ci_opts branch July 14, 2017 18:48
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.

4 participants