1
0
mirror of https://github.com/octoleo/hosts.git synced 2024-11-29 00:06:38 +00:00
Commit Graph

11 Commits

Author SHA1 Message Date
William Melody
ace77c9926 Modify temp handling for better portability. 2020-04-12 19:04:39 -07:00
William Melody
16c7484c17 Improve test failure messages. 2020-04-12 16:09:12 -07:00
William Melody
5916a18908 Avoid relying on hosts being in $PATH.
gh-8
2020-03-30 17:41:51 -07:00
William Melody
4eed5251da Add backups command.
`backups` provides subcommands for managing backups of the hosts file.
2020-03-15 18:42:16 -07:00
William Melody
a5bb823bac Improve setup / teardown of tmp test file.
Use a separate variable to identify tmp file during setup and teardown
operations.
2018-05-06 14:44:16 -07:00
William Melody
80edd464b6 Use explicit escaping for "\\n" newlines.
Backslash is literal, so explicitly escape it rather than rely on
fallback behavior.

ShellCheck SC1117
https://github.com/koalaman/shellcheck/wiki/SC1117
2018-04-15 14:55:26 -07:00
William Melody
6783e94f16 Fix typo in test_helper.bash comment. 2016-01-25 17:25:10 -08:00
William Melody
8faa7a0ab6 Add _compare() function to test_helper.bash. 2016-01-25 17:20:10 -08:00
William Melody
4e7cd2279e Add information about Bats to top of test_helper.bash. 2016-01-24 22:38:55 -08:00
William Melody
0c95e842ad Use /tmp directory for temp file generated with mktemp.
Moving to `mktemp` with files in /tmp makes it possible to remove the
local test/tmp directory.
2016-01-24 22:32:37 -08:00
William Melody
30ed049441 Add initial test structure with test 'hosts' file. 2016-01-24 21:14:32 -08:00