]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
cov-test-determinism: use the same RNG seed as in travis.yml
authorNick Mathewson <nickm@torproject.org>
Thu, 23 May 2019 18:36:01 +0000 (14:36 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 23 May 2019 18:36:01 +0000 (14:36 -0400)
We added this facility so that we could get deterministic PRNG
behavior for coverage testing on tests that use a replaced PRNG.
We need to have our coverage determinism tool test for this as well.

scripts/test/cov-test-determinism.sh

index 3b4f372e04429841ffae6bff77f7103cea40e981..3458f96968a371a088b8750c57fa87da9da5b71d 100755 (executable)
@@ -25,6 +25,9 @@ else
 fi
 
 if test "$run" = 1; then
+    # same seed as in travis.yml
+    TOR_TEST_RNG_SEED="636f766572616765"
+    export TOR_TEST_RNG_SEED
     while true; do
         make reset-gcov
         CD=coverage-raw/coverage-$(date +%s)