Tests: Improve "No ERRORS in log" test
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
d3b8b20bea
commit
700876bd6f
|
@ -167,7 +167,7 @@ const char * __attribute__ ((const)) debugstr(const enum debug_flag flag)
|
|||
case DEBUG_CAPS:
|
||||
return "DEBUG_CAPS";
|
||||
case DEBUG_DNSMASQ_LINES:
|
||||
return "DEBUG_DNSMASQ_LINES";
|
||||
return "DEBUG_DNSMASQ_LINES"; // This is a pseudo debug flag
|
||||
case DEBUG_VECTORS:
|
||||
return "DEBUG_VECTORS";
|
||||
case DEBUG_RESOLVER:
|
||||
|
|
|
@ -896,7 +896,7 @@
|
|||
}
|
||||
|
||||
@test "No ERROR messages in pihole-FTL.log (besides known index.html error)" {
|
||||
run bash -c 'grep "ERR: " /var/log/pihole-FTL.log | grep -c -v -E "(index\.html)|(create_shm(): Failed to create shared memory object \"FTL-lock\": File exists)"'
|
||||
run bash -c 'grep "ERR: " /var/log/pihole-FTL.log | grep -c -v -E "(index\.html)|(Failed to create shared memory object)"'
|
||||
printf "%s\n" "${lines[@]}"
|
||||
[[ ${lines[0]} == "0" ]]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue