Skip to content

Commit

Permalink
Merge pull request #718 from tomato42/log-version
Browse files Browse the repository at this point in the history
log the version of the analysis.py script
  • Loading branch information
tomato42 committed Oct 30, 2020
2 parents 330c965 + ec7a10f commit ee2c21c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tlsfuzzer/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
mpl.use('Agg')


VERSION = 2


_diffs = None
_DATA = None

Expand Down Expand Up @@ -647,6 +650,10 @@ def _write_summary(self, difference, p_vals, sign_p_vals, worst_pair,
report_filename = join(self.output, "report.csv")
text_report_filename = join(self.output, "report.txt")
with open(text_report_filename, 'w') as txt_file:
txt_file.write(
"tlsfuzzer analyse.py version {0} analysis\n"
.format(VERSION))

_, p = stats.kstest(p_vals, 'uniform')
txt = ("KS-test for uniformity of p-values from Wilcoxon "
"signed-rank test")
Expand Down

0 comments on commit ee2c21c

Please sign in to comment.