From 17d0b59909dc3a086150b6ab60eebd0007bf1841 Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Fri, 1 Dec 2023 10:49:00 +0100 Subject: [PATCH] fix: [tests] fix path in logs_tests.sh --- tests/logs_tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/logs_tests.sh b/tests/logs_tests.sh index e8c20efb5..cce740818 100644 --- a/tests/logs_tests.sh +++ b/tests/logs_tests.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash ERROR_MESSAGE="Errors found in logs !" # exit 0 of grep = match found, so we need to exit 1 on this use-case. -grep -HE -f logs_fail_regexes.txt `pwd`/app/tmp/logs/* && echo $ERROR_MESSAGE && exit 1 -grep -HE -f logs_fail_regexes.txt /var/log/apache2/*.log && echo $ERROR_MESSAGE && exit 1 -zgrep -HE -f logs_fail_regexes.txt /tmp/logs.json.gz && echo $ERROR_MESSAGE && exit 1 +grep -HE -f tests/logs_fail_regexes.txt `pwd`/app/tmp/logs/* && echo $ERROR_MESSAGE && exit 1 +grep -HE -f tests/logs_fail_regexes.txt /var/log/apache2/*.log && echo $ERROR_MESSAGE && exit 1 +zgrep -HE -f tests/logs_fail_regexes.txt /tmp/logs.json.gz && echo $ERROR_MESSAGE && exit 1 # exit cleanly because grep found nothing, and did exit 1. exit 0 \ No newline at end of file