Skip to content

Commit

Permalink
Merge pull request redhat-openstack#261 from bmjen/fix-acceptance-tests
Browse files Browse the repository at this point in the history
fixes debian-based flakiness in acceptance tests
  • Loading branch information
Morgan Haskel committed Apr 22, 2015
2 parents 060c453 + bc136ef commit 94ccfd2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
else
on host, puppet('module install puppetlabs-stdlib'), {:acceptable_exit_codes => [0, 1]}
end

if fact('osfamily') == 'Debian'
shell('[[ -f /etc/dhcp/dhclient-exit-hooks.d/ntp ]] && rm /etc/dhcp/dhcp-exit-hooks.d/ntp', { :acceptable_exit_codes => [0, 1] })
shell('[[ -f /etc/dhcp3/dhclient-exit-hooks.d/ntp ]] && rm /etc/dhcp3/dhcp-exit-hooks.d/ntp', { :acceptable_exit_codes => [0, 1] })
end
end
end

Expand Down

0 comments on commit 94ccfd2

Please sign in to comment.