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:
Daniel Schadt 2016-04-27 13:02:18 +02:00
parent 951cab237f
commit e8aa242d10

View File

@ -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()