From 7add99115690bf1ff78f47196c0945ef9c9e2783 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Tue, 5 Nov 2019 16:10:34 -0500 Subject: [PATCH] Fix #1366 When processing a command line for parallel mass testing, create_mass_testing_cmdline() did not account for the newer shortened versions of the output file options: -oj, -oJ, -oC, and -oH. This caused the command line for the child processes to be incorrect. --- testssl.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testssl.sh b/testssl.sh index 8ee99ac..a2dcfe0 100755 --- a/testssl.sh +++ b/testssl.sh @@ -18495,6 +18495,7 @@ create_mass_testing_cmdline() { MASS_TESTING_CMDLINE[nr_cmds]="--jsonfile=$TEMPDIR/jsonfile_${test_number}.json" # next is the jsonfile itself, as no '=' was supplied [[ "$cmd" == --jsonfile ]] && skip_next=true + [[ "$cmd" == -oj ]] && skip_next=true else MASS_TESTING_CMDLINE[nr_cmds]="$cmd" fi @@ -18503,6 +18504,7 @@ create_mass_testing_cmdline() { if "$JSONHEADER"; then MASS_TESTING_CMDLINE[nr_cmds]="--jsonfile-pretty=$TEMPDIR/jsonfile_${test_number}.json" [[ "$cmd" == --jsonfile-pretty ]] && skip_next=true + [[ "$cmd" == -oJ ]] && skip_next=true else MASS_TESTING_CMDLINE[nr_cmds]="$cmd" fi @@ -18511,6 +18513,7 @@ create_mass_testing_cmdline() { if "$CSVHEADER"; then MASS_TESTING_CMDLINE[nr_cmds]="--csvfile=$TEMPDIR/csvfile_${test_number}.csv" [[ "$cmd" == --csvfile ]] && skip_next=true + [[ "$cmd" == -oC ]] && skip_next=true else MASS_TESTING_CMDLINE[nr_cmds]="$cmd" fi @@ -18519,6 +18522,7 @@ create_mass_testing_cmdline() { if "$HTMLHEADER"; then MASS_TESTING_CMDLINE[nr_cmds]="--htmlfile=$TEMPDIR/htmlfile_${test_number}.html" [[ "$cmd" == --htmlfile ]] && skip_next=true + [[ "$cmd" == -oH ]] && skip_next=true else MASS_TESTING_CMDLINE[nr_cmds]="$cmd" fi