In specs, seed random number generator with clock time by default

This commit is contained in:
Max Brunsfeld 2015-12-10 21:01:27 -08:00
parent a3fdd7f20e
commit 51998ac5bb
3 changed files with 16 additions and 3 deletions

View file

@ -27,7 +27,7 @@ function run_tests {
local cmd="out/Debug/${target}"
shift
while getopts "df:ghpv" option; do
while getopts "df:s:ghpv" option; do
case ${option} in
h)
usage
@ -48,6 +48,9 @@ function run_tests {
v)
args+=("--reporter=spec")
;;
s)
export TREE_SITTER_SEED=${OPTARG}
;;
esac
done