From 66544bbe72743fa3a512d3e96db46b5d779221bf Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 10 Jun 2019 11:01:55 +0200 Subject: [PATCH] Explicitly search for : to avoid being triggered by the branch name Signed-off-by: DL6ER --- test/test_suite.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_suite.bats b/test/test_suite.bats index 98d61338..58459fc4 100644 --- a/test/test_suite.bats +++ b/test/test_suite.bats @@ -263,19 +263,19 @@ } @test "No WARNING messages in pihole-FTL.log (besides known capability issues)" { - run bash -c 'grep "WARNING" /var/log/pihole-FTL.log' | grep -c -v -E "CAP_NET_ADMIN|CAP_NET_RAW|(Starting pihole-FTL as user root is not recommended)"' + run bash -c 'grep "WARNING:" /var/log/pihole-FTL.log' | grep -c -v -E "CAP_NET_ADMIN|CAP_NET_RAW|(Starting pihole-FTL as user root is not recommended)"' printf "%s\n" "${lines[@]}" [[ ${lines[0]} == "0" ]] } @test "No ERROR messages in pihole-FTL.log" { - run bash -c 'grep -c "ERROR" /var/log/pihole-FTL.log' + run bash -c 'grep -c "ERROR:" /var/log/pihole-FTL.log' printf "%s\n" "${lines[@]}" [[ ${lines[0]} == "0" ]] } @test "No FATAL messages in pihole-FTL.log" { - run bash -c 'grep -c "FATAL" /var/log/pihole-FTL.log' + run bash -c 'grep -c "FATAL:" /var/log/pihole-FTL.log' printf "%s\n" "${lines[@]}" [[ ${lines[0]} == "0" ]] }