diff options
| author | Michal Nasiadka <mnasiadka@gmail.com> | 2025-07-10 12:38:18 +0200 |
|---|---|---|
| committer | Pierre Riteau <pierre@stackhpc.com> | 2025-07-21 12:31:40 +0000 |
| commit | 180721846e02d16fb6d59df1c4f7599cfb16aec6 (patch) | |
| tree | 3022b32d17f292c58241d82f0365c8b2f9ade1ce /tests/check-logs.sh | |
| parent | 07726215dc3734c488cfcc40138740cb0b684d96 (diff) | |
| download | kolla-ansible-180721846e02d16fb6d59df1c4f7599cfb16aec6.tar.gz kolla-ansible-180721846e02d16fb6d59df1c4f7599cfb16aec6.zip | |
Remove egrep usage from scripts
egrep: warning: egrep is obsolescent; using grep -E
Change-Id: I4df0d520546da141cafc15e9464149059fdc06a6
Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
Diffstat (limited to 'tests/check-logs.sh')
| -rwxr-xr-x | tests/check-logs.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/check-logs.sh b/tests/check-logs.sh index 9435e4ba5..f9af4b0f9 100755 --- a/tests/check-logs.sh +++ b/tests/check-logs.sh @@ -14,19 +14,19 @@ function check_openstack_log_file_for_level { # $1: file # $2: log level # Filter out false positives from logged config options. - sudo egrep " $2 " $1 | egrep -v "(logging_exception_prefix|rate_limit_except_level)" + sudo grep -E " $2 " $1 | grep -Ev "(logging_exception_prefix|rate_limit_except_level)" } function check_fluentd_log_file_for_level { # $1: file # $2: log level - sudo egrep "\[$2\]:" $1 + sudo grep -E "\[$2\]:" $1 } function check_fluentd_log_file_for_content { # $1: file # $2: content - sudo egrep "$2" $1 + sudo grep -E "$2" $1 } function check_fluentd_missing_logs { |
