vagrant/test
Paul Hinze abe0731d2e guests/{ubuntu,debian}: fix change_host_name for trailing dots [GH-2610]
When `/etc/hosts` contained a FQDN with a trailing dot, the `\b` in the
sed expression would not match, since dot is not considered to be a word
character.

Fix this by regexp-escaping the hostname search, and matching the end of
the line on optional space followed by additional characters.

Also add some tests that extract the regexp used by sed and verify that
it does what we want. These will hopefully serve us in the future if we
ever need to test additional edge cases.
2013-12-09 18:56:45 -06:00
..
acceptance test/acceptance: don't have the context show up as a component 2013-12-05 21:44:19 -08:00
acceptance_old move test/acceptance to test/acceptance_old 2013-12-04 15:35:50 -08:00
config Add `rake acceptance:boxes` to download required boxes for tests 2011-11-13 13:37:30 -08:00
support Test Tempdir class cleans itself up 2012-06-24 00:03:28 -07:00
unit guests/{ubuntu,debian}: fix change_host_name for trailing dots [GH-2610] 2013-12-09 18:56:45 -06:00