Add autoflush thingy for MAcOS

This commit is contained in:
Dirk Wetter
2025-11-27 18:46:19 +01:00
parent 853da2a9de
commit f3ebf0e971
3 changed files with 15 additions and 0 deletions

View File

@@ -24,6 +24,9 @@ printf "\n%s\n", "Doing severity level checks";
die "Unable to open $prg" unless -f $prg;
unlink 'tmp.json';
# useful against "failed to flush stdout" messages
STDOUT->autoflush(1);
#1
pass(" .. running testssl.sh against $uri to create a JSON report with severity level >= LOW (may take 2~3 minutes)"); $tests++;
$out = `$prg $check2run --jsonfile tmp.json $uri`;