Include the output (fuzz'd) file name in the output when fuzz (or randpkt)
authorJeff Morriss <jeff.morriss.ws@gmail.com>
Mon, 8 Jul 2013 19:49:17 +0000 (19:49 -0000)
committerJeff Morriss <jeff.morriss.ws@gmail.com>
Mon, 8 Jul 2013 19:49:17 +0000 (19:49 -0000)
testing fails.

Useful for when you want to use up a few spare CPU cores running multiple
simultaneous fuzz tests...

svn path=/trunk/; revision=50449

tools/randpkt-test.sh
tools/test-common.sh

index 14a2199fdb0316a2509515dd1fa918f7a11df122..0eceaa7e40462e96d9334c666acdaf31e9069970 100755 (executable)
@@ -98,9 +98,6 @@ while [ $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 ] ; do
             > /dev/null 2>&1 && DISSECTOR_BUG=1
 
         if [ $RETVAL -ne 0 -o $DISSECTOR_BUG -ne 0 ] ; then
-            RAND_FILE="randpkt-`$DATE +%Y-%m-%d`-$$.pcap"
-            mv $TMP_DIR/$TMP_FILE $TMP_DIR/$RAND_FILE
-            echo "  Output file: $TMP_DIR/$RAND_FILE"
 
             exit_error
         fi
index de72b33d885dd34f786bad7c07acf57024d9fddf..48771ec9b04416af2fc18bb9c7f736d82a0e6686 100644 (file)
@@ -98,6 +98,8 @@ function exit_error() {
     echo -e "\n ERROR"
     echo -e "Processing failed. Capture info follows:\n"
     echo "  Input file: $CF"
+    echo "  Output file: $TMP_DIR/$TMP_FILE"
+    echo
 
     # Fill in build information
     echo -e "Input file: $CF\n" > $TMP_DIR/${ERR_FILE}.header