mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 05:45:26 +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:
		| @@ -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++; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dirk
					Dirk