Tests: Improve "No ERRORS in log" test

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2021-05-27 13:25:37 +02:00
parent d3b8b20bea
commit 700876bd6f
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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" ]]
}