File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,8 @@ option names are:
198198If you need to record the whole test suite logging calls to a file, you can pass
199199``--log-file=/path/to/log/file ``. This log file is opened in write mode which
200200means that it will be overwritten at each run tests session.
201+ Note that relative paths for the log-file location, whether passed on the CLI or declared in a
202+ config file, are always resolved relative to the current working directory.
201203
202204You can also specify the logging level for the log file by passing
203205``--log-file-level ``. This setting accepts the logging level names as seen in
Original file line number Diff line number Diff line change @@ -1514,7 +1514,7 @@ passed multiple times. The expected format is ``name=value``. For example::
15141514
15151515
15161516
1517- Sets a file name relative to the `` pytest.ini `` file where log messages should be written to, in addition
1517+ Sets a file name relative to the current working directory where log messages should be written to, in addition
15181518 to the other logging facilities that are active.
15191519
15201520 .. code-block :: ini
You can’t perform that action at this time.
0 commit comments