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:
Dirk 2020-01-18 21:47:44 +01:00
parent cb6677e2d3
commit f109d3bbd6
3 changed files with 3 additions and 0 deletions

View File

@ -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 ";

View File

@ -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)";

View File

@ -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++;