mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fix readme and add net=host
This commit is contained in:
parent
fc7007b78e
commit
3cfe5283e3
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user