1..160 ok 1 `add` with no arguments exits with status 1. ok 2 `add` with no argument does not change the hosts file. ok 3 `add` with no arguments prints help information. ok 4 `add ` exits with status 1. ok 5 `add ` does not change the hosts file. ok 6 `add ` prints help information. ok 7 `add ` exits with status 0. ok 8 `add ` adds the entry to the hosts file. ok 9 `add ` prints feedback. ok 10 `add ` doesn't add duplicate entry. ok 11 `add [comment]` exits with status 0. ok 12 `add [comment]` adds the entry to the hosts file. ok 13 `add [comment]` doesn't add duplicate entry. ok 14 `add [comment]` doesn't add duplicate commented entry. ok 15 `add [comment]` prints feedback. ok 16 `help add` exits with status 0. ok 17 `help add` prints help information. ok 18 `backups` with no backups and no arguments exits with status 0. ok 19 `backups` with backups and no arguments exits with status 0. ok 20 `backups` with no backups and no arguments prints message. ok 21 `backups` with backups and no arguments prints list of backups. ok 22 `backups create` exits with status 0. ok 23 `backups create` creates backup. ok 24 `backups create` prints message. ok 25 `backups compare` with valid backup exits with status 1 and prints. ok 26 `backups compare` with missing backup exits with status 1 ok 27 `backups compare` with invalid backup exits with status 1 ok 28 `backups delete` with valid backup exits with status 0 and deletes backup ok 29 `backups delete` with invalid backup exits with status 1 ok 30 `backups restore` with valid backup exits with status 0 and restores ok 31 `backups restore --skip-backup` with valid backup exits with status 0 and restores ok 32 `backups restore` with invalid backup exits with status 1 ok 33 `backups show` with valid backup exits with status 0 and prints. ok 34 `backups show` with invalid backup exits with status 1 ok 35 `block` with no arguments exits with status 1. ok 36 `block` with no argument does not change the hosts file. ok 37 `block` with no arguments prints help information. ok 38 `block ` exits with status 0. ok 39 `block ` adds entries to the hosts file. ok 40 `block ` prints feedback. ok 41 `block ` exits with status 0. ok 42 `block ` adds entries to the hosts file. ok 43 `block ` prints feedback. ok 44 `help block` exits with status 0. ok 45 `help block` prints help information. ok 46 `disable` with no arguments exits with status 1. ok 47 `disable` with no argument does not change the hosts file. ok 48 `disable` with no arguments prints help information. ok 49 `disable ` exits with status 0. ok 50 `disable ` updates the hosts file. ok 51 `disable ` disables all matches. ok 52 `disable ` prints feedback. ok 53 `disable ` exits with status 0. ok 54 `disable ` updates the hosts file. ok 55 `disable ` disables all matches. ok 56 `disable ` prints feedback. ok 57 `help disable` exits with status 0. ok 58 `help disable` prints help information. ok 59 `disabled` with no arguments exits with status 0. ok 60 `disabled` with no arguments prints list of disabled records. ok 61 `help disabled` exits with status 0. ok 62 `help disabled` prints help information. ok 63 `enable` with no arguments exits with status 1. ok 64 `enable` with no argument does not change the hosts file. ok 65 `enable` with no arguments prints help information. ok 66 `enable ` exits with status 0. ok 67 `enable ` updates the hosts file. ok 68 `enable ` enables all matches. ok 69 `enable ` prints feedback. ok 70 `enable ` exits with status 0. ok 71 `enable ` updates the hosts file. ok 72 `enable ` enables all matches. ok 73 `enable ` prints feedback. ok 74 `help enable` exits with status 0. ok 75 `help enable` prints help information. ok 76 `enabled` with no arguments exits with status 0. not ok 77 `enabled` with no arguments prints list of enabled records. # (in test file test/enabled.bats, line 32) # `[[ "${lines[0]}" =~ 127.0.0.1[[:space:]]+localhost ]]' failed # ${status}: 0 # ${output}: 'grep: warning: stray \ before # # 127.0.0.1 localhost # 255.255.255.255 broadcasthost # ::1 localhost # fe80::1%lo0 localhost # 127.0.0.2 example.com' ok 78 `help enabled` exits with status 0. ok 79 `help enabled` prints help information. ok 80 `file` exits with status 0. ok 81 `file` prints $HOSTS_PATH contents. ok 82 `help file` exits with status 0. ok 83 `help file` prints help information. ok 84 `help` with no arguments exits with status 0. ok 85 `help` with no arguments prints default help. ok 86 `hosts -h` prints default help. ok 87 `hosts --help` prints default help. ok 88 `hosts help help` prints `help` subcommand usage. ok 89 `hosts` with no arguments exits with status 0. not ok 90 `hosts` with no arguments prints enabled rules. # (in test file test/hosts.bats, line 12) # `[[ "${#lines[@]}" -eq 4 ]]' failed ok 91 `list` exits with status 0. not ok 92 `list` prints lists of enabled and disabled records. # (in test file test/list.bats, line 44) # `[[ "${output}" == "${_expected}" ]]' failed # ${status}: 0 # ${output}: 'grep: warning: stray \ before # # 127.0.0.1 localhost # 255.255.255.255 broadcasthost # ::1 localhost # fe80::1%lo0 localhost # 127.0.0.2 example.com # # Disabled: # --------- # 0.0.0.0 example.com # 0.0.0.0 example.net' # expected: # '127.0.0.1 localhost # 255.255.255.255 broadcasthost # ::1 localhost # fe80::1%lo0 localhost # 127.0.0.2 example.com # # Disabled: # --------- # 0.0.0.0 example.com # 0.0.0.0 example.net' # actual: # 'grep: warning: stray \ before # # 127.0.0.1 localhost # 255.255.255.255 broadcasthost # ::1 localhost # fe80::1%lo0 localhost # 127.0.0.2 example.com # # Disabled: # --------- # 0.0.0.0 example.com # 0.0.0.0 example.net' ok 93 `list enabled` exits with status 0. not ok 94 `list enabled` prints list of enabled records. # (in test file test/list.bats, line 74) # `[[ "${lines[0]}" =~ 127\.0\.0\.1[[:space:]]+localhost ]]' failed # ${status}: 0 # ${output}: 'grep: warning: stray \ before # # 127.0.0.1 localhost # 255.255.255.255 broadcasthost # ::1 localhost # fe80::1%lo0 localhost # 127.0.0.2 example.com' ok 95 `list disabled` exits with status 0. ok 96 `list disabled` prints list of disabled records. ok 97 `list ` exits with status 0. ok 98 `list ` prints list of matching records. ok 99 `list ` prints records with matching comments. ok 100 `list ` prints disabled records with matching comments. ok 101 `help list` exits with status 0. ok 102 `help list` prints help information. ok 103 `remove` with no arguments exits with status 1. ok 104 `remove` with no argument does not change the hosts file. ok 105 `remove` with no arguments prints help information. ok 106 `remove --force` exits with status 1. ok 107 `remove --force` prints error message. ok 108 `remove --force` exits with status 0. ok 109 `remove --force` updates the hosts file. ok 110 `remove ` removes all matches. ok 111 `remove ` prints feedback. ok 112 `remove --force` exits with status 0. ok 113 `remove --force` updates the hosts file. ok 114 `remove ` removes all matches. ok 115 `remove ` prints feedback. ok 116 `help remove` exits with status 0. ok 117 `help remove` prints help information. ok 118 `search` with no arguments exits with status 1. ok 119 `search` with no arguments prints help information. ok 120 `search enabled` exits with status 0. not ok 121 `search enabled` prints list of enabled records. # (in test file test/search.bats, line 69) # `[[ "${lines[0]}" =~ 127.0.0.1[[:space:]]+localhost ]]' failed # ${status}: 0 # ${output}: 'grep: warning: stray \ before # # 127.0.0.1 localhost # 255.255.255.255 broadcasthost # ::1 localhost # fe80::1%lo0 localhost # 127.0.0.2 example.com' ok 122 `search disabled` exits with status 0. ok 123 `search disabled` prints list of disabled records. ok 124 `search ` exits with status 0. ok 125 `search ` prints list of matching records. ok 126 `search ` prints records with matching comments. ok 127 `search ` prints disabled records with matching comments. ok 128 `help search` exits with status 0. ok 129 `help search` prints help information. ok 130 `show` with no arguments exits with status 1. ok 131 `show` with no arguments prints help information. ok 132 `show ` with no matching records with status 1. ok 133 `show ` exits with status 0 and shows all matches. ok 134 `show ` exits with status 0 and shows all matches. ok 135 `show ` exits with status 0 and shows matching records. ok 136 `show ` prints records with matching comments. ok 137 `show ` prints disabled records with matching comments. ok 138 `help show` exits with status 0. ok 139 `help show` prints help information. ok 140 `unblock` with no arguments exits with status 1. ok 141 `unblock` with no argument does not change the hosts file. ok 142 `unblock` with no arguments prints help information. ok 143 `unblock ` exits with status 1. ok 144 `unblock ` prints error message. ok 145 `unblock ` exits with status 0. ok 146 `unblock ` updates the hosts file. ok 147 `unblock ` removes all matches. ok 148 `unblock ` prints feedback. ok 149 `unblock ` exits with status 0. ok 150 `unblock ` updates the hosts file. ok 151 `unblock ` removes all matches. ok 152 `unblock ` prints feedback. ok 153 `help unblock` exits with status 0. ok 154 `help unblock` prints help information. ok 155 `hosts version` returns with 0 status. ok 156 `hosts version` prints a version number. ok 157 `hosts --version` returns with 0 status. ok 158 `hosts --version` prints a version number. ok 159 `help version` exits with status 0. ok 160 `help version` prints help information. Backtrace: 2 (primitive-load "/gnu/store/hir75cqqqj2dx2nq8230zmb86m6?") In ice-9/eval.scm: 619:8 1 (_ #f) In guix/build/utils.scm: 822:6 0 (invoke "/gnu/store/pwbfmz7s47pczdill6qg69974jk6fh0g-b?" ?) guix/build/utils.scm:822:6: In procedure invoke: ERROR: 1. &invoke-error: program: "/gnu/store/pwbfmz7s47pczdill6qg69974jk6fh0g-bats-1.11.0/bin/bats" arguments: ("test") exit-status: 1 term-signal: #f stop-signal: #f `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/README.md' -> `./README.md' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/Makefile' -> `./Makefile' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/.travis.yml' -> `./.travis.yml' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/hosts' -> `./hosts' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/.shellcheckrc' -> `./.shellcheckrc' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/LICENSE' -> `./LICENSE' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/package.json' -> `./package.json' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/package-lock.json' -> `./package-lock.json' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/enable.bats' -> `./test/enable.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/backups.bats' -> `./test/backups.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/file.bats' -> `./test/file.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/search.bats' -> `./test/search.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/help.bats' -> `./test/help.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/version.bats' -> `./test/version.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/block.bats' -> `./test/block.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/test_helper.bash' -> `./test/test_helper.bash' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/disabled.bats' -> `./test/disabled.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/show.bats' -> `./test/show.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/enabled.bats' -> `./test/enabled.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/unblock.bats' -> `./test/unblock.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/remove.bats' -> `./test/remove.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/add.bats' -> `./test/add.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/disable.bats' -> `./test/disable.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/list.bats' -> `./test/list.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/hosts.bats' -> `./test/hosts.bats' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/fixtures/hosts' -> `./test/fixtures/hosts' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/test/fixtures/bin/hosts' -> `./test/fixtures/bin/hosts' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/etc/hosts-completion.zsh' -> `./etc/hosts-completion.zsh' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/etc/README.md' -> `./etc/README.md' `/gnu/store/va9i8siln518srfs066d97yzxlkfp8sm-hosts-3.6.3-checkout/etc/hosts-completion.bash' -> `./etc/hosts-completion.bash'