Permalink
Browse files

Merge pull request #925 from seccubus/json_footer_breaks_json

JSOn output is broken by the JSON footer in combination with mass mode
  • Loading branch information...
drwetter committed Dec 7, 2017
2 parents 2a0a047 + 393e4fb commit 7e62dc3192b0ce230ec7237df9bac9146ed1e522
Showing with 2 additions and 0 deletions.
  1. +2 −0 testssl.sh
View
@@ -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 $?
@@ -14555,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"

0 comments on commit 7e62dc3

Please sign in to comment.