Sort paths before fuzzing, to make drdr runs reproducible.

This commit is contained in:
Sam Tobin-Hochstadt 2012-02-29 12:01:37 -05:00
parent a23f6dbca2
commit 3267738425

View File

@ -46,8 +46,12 @@
(random-seed global-seed)
(let loop ()
(cond [file (run file seed0)]
[dir (for ([p (in-directory dir)]
#:when (regexp-match #rx"\\.zo" p))
(run p seed0))]
[dir
(define files (sort (for/list ([f (in-directory dir)]
#:when (regexp-match #rx"\\.zo" f))
f)
#:key path->string
string<?))
(for ([p files]) (run p seed0))]
[else (printf "Nothing to do.\n")])
(when forever? (loop))))