From f9cd23215addf09af0c0ef44e5efe1b0840150cb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 12 Mar 2022 11:10:21 +0500 Subject: test: catch possible undetected failures --- test/test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test.sh b/test/test.sh index 1662eed..1c2ce66 100755 --- a/test/test.sh +++ b/test/test.sh @@ -108,6 +108,9 @@ curl_check_keyword() { if ! grep --fixed-strings --quiet -- "$keyword" "$curl_output_file"; then dump "The following pattern hasn't been found:" dump "$keyword" + dump "The output was:" + cat -- "$curl_output_file" + return 1 fi done } -- cgit v1.2.3