From 3eb402a3d5a018f56db1aa7a072b7b37234242e7 Mon Sep 17 00:00:00 2001 From: Frank Breedijk Date: Wed, 6 Dec 2017 16:10:53 +0100 Subject: [PATCH 1/2] JSOn output is broken by the JSON footer in combination with mass mode --- testssl.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testssl.sh b/testssl.sh index 72ac3ab..3456e4e 100755 --- a/testssl.sh +++ b/testssl.sh @@ -14534,6 +14534,7 @@ run_mass_testing() { "$first" || fileout_separator # this is needed for appended output, see #687 first=false cat "$TEMPDIR/jsonfile_child.json" >> "$JSONFILE" + FIRST_FINDING=false fi done < "${FNAME}" return $? From 393e4fb920ce567f0106ba21f2698d4b7f25503b Mon Sep 17 00:00:00 2001 From: Frank Breedijk Date: Wed, 6 Dec 2017 21:54:59 +0100 Subject: [PATCH 2/2] JSON output fixed in `--parallel` too --- testssl.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testssl.sh b/testssl.sh index 3456e4e..89fc23f 100755 --- a/testssl.sh +++ b/testssl.sh @@ -14556,6 +14556,7 @@ get_next_message_testing_parallel_result() { # produced some JSON output. "$FIRST_JSON_OUTPUT" || fileout_separator # this is needed for appended output, see #687 FIRST_JSON_OUTPUT=false + FIRST_FINDING=false cat "$TEMPDIR/jsonfile_$(printf "%08d" $NEXT_PARALLEL_TEST_TO_FINISH).json" >> "$JSONFILE" fi "$CSVHEADER" && cat "$TEMPDIR/csvfile_$(printf "%08d" $NEXT_PARALLEL_TEST_TO_FINISH).csv" >> "$CSVFILE"