mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-29 04:49:44 +01:00
add unlink / start with a clean state
... good when running "prove -v" locally and previously the run was interrrupted by e.g. ^C
This commit is contained in:
parent
cb6677e2d3
commit
f109d3bbd6
@ -22,6 +22,7 @@ die "Unable to open $prg" unless -f $prg;
|
||||
my $uri="cloudflare.com";
|
||||
|
||||
printf "\n%s\n", "Unit testing JSON output ...";
|
||||
unlink 'tmp.json';
|
||||
|
||||
#1
|
||||
printf "%s\n", ".. plain JSON --> $uri ";
|
||||
|
@ -19,6 +19,7 @@ my $check2run="--color 0 --htmlfile tmp.html";
|
||||
die "Unable to open $prg" unless -f $prg;
|
||||
|
||||
printf "\n%s\n", "Doing HTML output checks";
|
||||
unlink 'tmp.html';
|
||||
|
||||
#1
|
||||
printf "%s\n", " .. running $prg against $uri to create HTML and terminal outputs (may take 2~3 minutes)";
|
||||
|
@ -17,6 +17,7 @@ $tests = 0;
|
||||
|
||||
|
||||
printf "\n%s\n", "Doing severity level checks";
|
||||
unlink 'tmp.json';
|
||||
|
||||
#1
|
||||
pass(" .. running testssl.sh against badssl.com to create a JSON report with severity level equal greater than LOW (may take 2~3 minutes)"); $tests++;
|
||||
|
Loading…
Reference in New Issue
Block a user