tests: fix invocation test for --cachedir
--cachedir="" doesn't work because the quotes are not processed (as they would be by the shell) and the cachedir is set to ./"" (that is a directory with two double quotes as name). The correct start parameter is thus --cachedir=, which correctly fails when the fix is reverted.
This commit is contained in:
parent
951cab237f
commit
e8aa242d10
@ -61,7 +61,7 @@ def test_no_config(temp_basedir_env, quteproc_new):
|
||||
@pytest.mark.linux
|
||||
def test_no_cache(temp_basedir_env, quteproc_new):
|
||||
"""Test starting with --cachedir=""."""
|
||||
args = ['--debug', '--no-err-windows', '--cachedir=""', 'about:blank']
|
||||
args = ['--debug', '--no-err-windows', '--cachedir=', 'about:blank']
|
||||
quteproc_new.start(args, env=temp_basedir_env)
|
||||
quteproc_new.send_cmd(':quit')
|
||||
quteproc_new.wait_for_quit()
|
||||
|
Loading…
Reference in New Issue
Block a user