From 4af23446b697602e51831ca7fce59a9c9d284003 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 4 Jun 2018 01:21:33 -0700 Subject: [PATCH] Send the "Command and args:" message to the right output file. Send it to same output file that gets the output ofthetest command, so that it shows upin the output. (I spent entirely too much time trying to figure out why 14738 was happening on the buildbot but not on my machine - it turns out that the test where it was failing was the one where -V *wasn't* specified, so the protocol tree *wasn't* being generated, so proto_tree_add_string() *wasn't* doing some tests that should have thrown an exception. The output didn't make it clear that the test that was failing was the one where the arguments to tshark were -nr, not -nVxr.) Change-Id: I54e4450029ac56b9ac3d6eff9baf8acc849a5e4c Reviewed-on: https://code.wireshark.org/review/28003 Reviewed-by: Guy Harris --- tools/fuzz-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh index 14981530be..8823a510d2 100755 --- a/tools/fuzz-test.sh +++ b/tools/fuzz-test.sh @@ -209,7 +209,6 @@ while [ \( $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 \) -a $DONE -ne 1 ] ; do break # We caught a signal fi echo -n "($ARGS) " - echo -e "Command and args: $RUNNER $ARGS\n" > $TMP_DIR/$ERR_FILE # Run in a child process with limits. ( @@ -231,6 +230,7 @@ while [ \( $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 \) -a $DONE -ne 1 ] ; do SUBSHELL_PID=$($SHELL -c 'echo $PPID') + echo -e "Command and args: $RUNNER $ARGS\n" > $TMP_DIR/$ERR_FILE.$SUBSHELL_PID "$RUNNER" $COMMON_ARGS $ARGS $TMP_DIR/$TMP_FILE \ > /dev/null 2>> $TMP_DIR/$ERR_FILE.$SUBSHELL_PID ) &