From 7213e0638707f4366a94b0a4dbbf9e247c094df0 Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Wed, 22 May 2024 16:11:43 +0100 Subject: [PATCH] Tweak the "check output for errors" only on ubuntu16 as ftp output includes the phrase "error" --- test/34-ftp-ports.bats | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/test/34-ftp-ports.bats b/test/34-ftp-ports.bats index f377f23..d679f8c 100644 --- a/test/34-ftp-ports.bats +++ b/test/34-ftp-ports.bats @@ -98,7 +98,16 @@ EOF # assert_line --partial "SSL connection using TLSv1.3" assert_line --partial "200 PROT now Private" - check_output_for_errors + # 22-May-2024 skip assert_success on ubuntu16 as ftp output contains the + # message "error fetching CN from cert:The requested data were not available." + if [[ $GETSSL_OS == ubuntu16 ]]; then + refute_output --regexp '[Ff][Aa][Ii][Ll][Ee][Dd]' + refute_output --regexp '[^_][Ee][Rr][Rr][Oo][Rr][^:badNonce|^ fetching CN from cert]' + refute_output --regexp '[^_][Ww][Aa][Rr][Nn][Ii][Nn][Gg]' + refute_line --partial 'command not found' + else + check_output_for_errors + fi } @@ -163,5 +172,14 @@ EOF create_certificate assert_success assert_line --partial "200 PROT now Private" - check_output_for_errors + # 22-May-2024 skip assert_success on ubuntu16 as ftp output contains the + # message "error fetching CN from cert:The requested data were not available." + if [[ $GETSSL_OS == ubuntu16 ]]; then + refute_output --regexp '[Ff][Aa][Ii][Ll][Ee][Dd]' + refute_output --regexp '[^_][Ee][Rr][Rr][Oo][Rr][^:badNonce|^ fetching CN from cert]' + refute_output --regexp '[^_][Ww][Aa][Rr][Nn][Ii][Nn][Gg]' + refute_line --partial 'command not found' + else + check_output_for_errors + fi }