From 6f02c66931d16fb34382b0f8db2053875f0d233f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 30 Jul 2019 00:38:02 -0400 Subject: tests/badssl.sh: Print newline before TAP directives --- (limited to 'tests') diff --git a/tests/badssl.sh b/tests/badssl.sh index 40d33c2..7a82656 100755 --- a/tests/badssl.sh +++ b/tests/badssl.sh @@ -27,15 +27,22 @@ do_test() local host="${2}" local port="${3}" shift 3 + local result= - command_ok_ "${ok} ${host}" -- \ - ${ok} "${TOP_BUILDDIR}/wolfssl-util" s_client \ + if ${ok} "${TOP_BUILDDIR}/wolfssl-util" s_client \ -connect "${host}.badssl.com:${port}" \ -servername "${host}.badssl.com" \ <<-EOF GET / HTTP/1.0 EOF + then + result='ok' + else + result='not ok' + fi + printf '\n' + result_ "${result}" -- "${ok} ${host}" } plan_ 40 -- cgit v0.9.1