Change wording from 'cmd' to 'cli'
This commit is contained in:
parent
0998c84eb2
commit
4b5589e1bb
|
@ -560,8 +560,8 @@ class LoggingPlugin:
|
|||
if not os.path.isdir(directory):
|
||||
os.makedirs(directory)
|
||||
|
||||
# Log file should be relative to cwd when passed as a cmd argument and
|
||||
# relative to the config file otherwise.
|
||||
# Log file should be relative to invocation location when passed as a cli argument
|
||||
# and relative to the config file otherwise.
|
||||
is_inifile_argument = "--log-file" not in config.invocation_params.args
|
||||
if config.inipath is not None and is_inifile_argument:
|
||||
log_file = os.path.join(config.inipath.parent, log_file)
|
||||
|
|
|
@ -1221,7 +1221,7 @@ def test_log_file_in_subdir_when_specified_and_pytest_invoked_in_subdir(
|
|||
assert "tox.ini" not in files_in_subdir
|
||||
|
||||
|
||||
def test_log_file_relative_to_invocation_dir_when_passed_as_cmd_argument(
|
||||
def test_log_file_relative_to_invocation_dir_when_passed_as_cli_argument(
|
||||
pytester, monkeypatch
|
||||
):
|
||||
"""PR #7350 comment related to issue #7350 (https://github.com/pytest-dev/pytest/pull/7350#pullrequestreview-429803796).
|
||||
|
|
Loading…
Reference in New Issue