mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 18:15:29 +02:00
tests: Replace wc -l
with grep -c
(#3752)
This commit is contained in:
parent
6082d5f8d0
commit
0eb4ac7714
4 changed files with 13 additions and 12 deletions
|
@ -33,7 +33,7 @@ function setup_file() {
|
|||
function teardown_file() { _default_teardown ; }
|
||||
|
||||
@test 'log files exist at /var/log/mail directory' {
|
||||
_run_in_container_bash "ls -1 /var/log/mail/ | grep -E 'clamav|freshclam|mail.log' | wc -l"
|
||||
_run_in_container_bash "ls -1 /var/log/mail/ | grep -c -E 'clamav|freshclam|mail.log'"
|
||||
assert_success
|
||||
assert_output 3
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue