Skip to content

Commit

Permalink
Test fail
Browse files Browse the repository at this point in the history
Signed-off-by: yubiuser <[email protected]>
  • Loading branch information
yubiuser committed Sep 18, 2024
1 parent d345655 commit 2001576
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_suite.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ load 'libs/bats-assert/load'
assert_output --partial 'CRIT: pihole-FTL is already running'
}

@test "Running a second instance is detected and prevented (fail)" {
run bash -c 'su pihole -s /bin/sh -c "./pihole-FTL -f"'
printf "%s\n" "${lines[@]}"
assert_output --partial 'dfgdfgfdg'
}

@test "dnsmasq options as expected" {
run bash -c './pihole-FTL -vv | grep "cryptohash"'
printf "%s\n" "${lines[@]}"
Expand Down

0 comments on commit 2001576

Please sign in to comment.