]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
On Travis, put random data in ~/.torrc
authorrl1987 <rl1987@sdf.lonestar.org>
Sun, 23 Jun 2019 10:31:47 +0000 (13:31 +0300)
committerrl1987 <rl1987@sdf.lonestar.org>
Sun, 23 Jun 2019 10:31:47 +0000 (13:31 +0300)
.travis.yml

index 5d5d95f6b38d19130de938c62be88d23cdb3c1e1..1901d950a43fdcfe283944e94f03624f9b1ed205 100644 (file)
@@ -191,6 +191,9 @@ install:
   - python --version
   ## run stem tests if they are enabled.
   - if [[ "$TEST_STEM" != "" ]]; then pushd stem; python -c "from stem import stem; print(stem.__version__);"; git log -1; popd; fi
+  ## We don't want Tor tests to depends on default configuration file at
+  ## ~/.torrc. So we put some random bytes in there, to make sure it doesn't.
+  - dd ibs=1 count=1024 if=/dev/urandom > ~/.torrc
 
 script:
   # Skip test_rebind on macOS