Fix readme and add net=host

This commit is contained in:
alesapin 2018-11-23 18:51:36 +03:00
parent fc7007b78e
commit 3cfe5283e3
2 changed files with 4 additions and 3 deletions

View File

@ -49,7 +49,7 @@ rtt min/avg/max/mdev = 40.157/40.284/40.463/0.278 ms
You can run tests via `./runner` script and pass pytest arguments as last arg:
```
$ ./runner.py --binary $HOME/ClickHouse/dbms/programs/clickhouse --configs-dir $HOME/ClickHouse/dbms/programs/server/ 'test_odbc_interaction -ss'
$ ./runner --binary $HOME/ClickHouse/dbms/programs/clickhouse --configs-dir $HOME/ClickHouse/dbms/programs/server/ 'test_odbc_interaction -ss'
Start tests
============================= test session starts ==============================
platform linux2 -- Python 2.7.15rc1, pytest-4.0.0, py-1.7.0, pluggy-0.8.0
@ -75,7 +75,7 @@ Path to binary and configs maybe specified via env variables:
```
$ export CLICKHOUSE_TESTS_BASE_CONFIG_DIR=$HOME/ClickHouse/dbms/programs/server/
$ export CLICKHOUSE_TESTS_SERVER_BIN_PATH=$HOME/ClickHouse/dbms/programs/clickhouse
$ ./runner.py 'test_odbc_interaction'
$ ./runner 'test_odbc_interaction'
Start tests
============================= test session starts ==============================
platform linux2 -- Python 2.7.15rc1, pytest-4.0.0, py-1.7.0, pluggy-0.8.0

View File

@ -31,7 +31,8 @@ if __name__ == "__main__":
args = parser.parse_args()
cmd = "docker run --privileged --volume={bin}:/clickhouse --volume={cfg}:/clickhouse-config --volume={pth}:/ClickHouse -e PYTEST_OPTS='{opts}' {img}".format(
cmd = "docker run --net=host --privileged --volume={bin}:/clickhouse \
--volume={cfg}:/clickhouse-config --volume={pth}:/ClickHouse -e PYTEST_OPTS='{opts}' {img}".format(
bin=args.binary,
cfg=args.configs_dir,
pth=args.clickhouse_root,