Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ Puppetfile.lock
.*.sw?
.yardoc/
Guardfile

# This filename makes windows barf. Which breaks deploys
spec/fixtures/provider/network_config/redhat_spec/network-scripts/ifcfg-eth0:10000000

10 changes: 10 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ task 'lint:auto_correct' do
Rake::Task[:lint_fix].invoke
end

# So windows cannot handle paths with a : character. But that's used by
# a network config fixture. The simplest way to handle it without weird
# and confusing File.read mocks is to simply symlink it before tests are
# run. Gross? Yeah, but it seems like the least gross option.
task :fix_pathname do
FileUtils.ln_sf 'spec/fixtures/provider/network_config/redhat_spec/network-scripts/ifcfg-eth0_10000000',
'spec/fixtures/provider/network_config/redhat_spec/network-scripts/ifcfg-eth0:10000000'
end
task :spec_prep => :fix_pathname

desc 'Run acceptance tests'
RSpec::Core::RakeTask.new(:acceptance) do |t|
t.pattern = 'spec/acceptance'
Expand Down

This file was deleted.