浏览代码

On Travis, put random data in ~/.torrc

rl1987 5 年之前
父节点
当前提交
f9de9052e1
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      .travis.yml

+ 3 - 0
.travis.yml

@@ -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