mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-06 02:15:22 +00:00
Documentation fix for Bfg: pip, teardown
This commit is contained in:
parent
4aee194233
commit
0542ca9eb4
@ -561,6 +561,9 @@ But the main purpose of BFG is to support user-defined scenarios in python. Here
|
|||||||
def teardown(self):
|
def teardown(self):
|
||||||
''' this will be executed in each worker after the end of the test '''
|
''' this will be executed in each worker after the end of the test '''
|
||||||
log.info("Tearing down LoadTest")
|
log.info("Tearing down LoadTest")
|
||||||
|
#It's mandatory to explicitly stop worker process in teardown
|
||||||
|
os._exit(0)
|
||||||
|
return 0
|
||||||
|
|
||||||
2. Define your options in a config file:
|
2. Define your options in a config file:
|
||||||
|
|
||||||
@ -646,7 +649,13 @@ INI file section: **[bfg]**
|
|||||||
Default: ``caseline``.
|
Default: ``caseline``.
|
||||||
|
|
||||||
:pip:
|
:pip:
|
||||||
Install python modules with ``pip install --user`` before the test.
|
Install python modules with ``pip install --user`` before the test. If you need multiple modules use multiline options, i.e.:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
pip=grequests
|
||||||
|
msgpack
|
||||||
|
|
||||||
|
|
||||||
:init_param:
|
:init_param:
|
||||||
An initialization parameter that will be passed to your ``setup`` method.
|
An initialization parameter that will be passed to your ``setup`` method.
|
||||||
|
Loading…
Reference in New Issue
Block a user