From 26aee1c6a96601dd1655ea6bb830d10387f89585 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 6 Jan 2019 01:10:15 +0100 Subject: [PATCH] Better documentation for the fuzz diff parser script --- test/fuzz_diff_parser.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/fuzz_diff_parser.py b/test/fuzz_diff_parser.py index 58de48c..01a8e33 100644 --- a/test/fuzz_diff_parser.py +++ b/test/fuzz_diff_parser.py @@ -1,6 +1,10 @@ """ A script to find bugs in the diff parser. +This script is extremely useful if changes are made to the diff parser. By +running a few thousand iterations, we can assure that the diff parser is in +good shape. + Usage: fuzz_diff_parser.py [--pdb|--ipdb] [-l] [-n=] [-x=] random [] fuzz_diff_parser.py [--pdb|--ipdb] [-l] redo [-o=] [-p] @@ -8,8 +12,8 @@ Usage: Options: -h --help Show this screen - -n, --maxtries= Maximum of random tries [default: 100] - -x, --changes= Amount of changes to be done to a file per try [default: 2] + -n, --maxtries= Maximum of random tries [default: 1000] + -x, --changes= Amount of changes to be done to a file per try [default: 5] -l, --logging Prints all the logs -o, --only-last= Only runs the last n iterations; Defaults to running all -p, --print-diffs Print all test diffs