diff options
| author | Marc Abramowitz <marc@marc-abramowitz.com> | 2014-04-28 23:19:28 -0700 |
|---|---|---|
| committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2014-04-28 23:19:28 -0700 |
| commit | 0b808e4640861a1f5196201db99a865839781e48 (patch) | |
| tree | 1f457000f0ce2d0326adb6e1df3b76679f2e8ea9 | |
| parent | 2cd6b250355d795f87c6d05487b5983900617b1a (diff) | |
| download | tox-0b808e4640861a1f5196201db99a865839781e48.tar.gz | |
Add test_run_custom_install_command_error
| -rw-r--r-- | tests/test_z_cmdline.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_z_cmdline.py b/tests/test_z_cmdline.py index 343c142..bdbd1ea 100644 --- a/tests/test_z_cmdline.py +++ b/tests/test_z_cmdline.py @@ -193,6 +193,19 @@ def test_minversion(cmd, initproj): ]) assert result.ret +def test_run_custom_install_command_error(cmd, initproj): + initproj("interp123-0.5", filedefs={ + 'tox.ini': ''' + [testenv] + install_command=./tox.ini {opts} {packages} + ''' + }) + result = cmd.run("tox") + result.stdout.fnmatch_lines([ + "ERROR: invocation failed, args: ['*/tox.ini*", + ]) + assert result.ret + def test_unknown_interpreter_and_env(cmd, initproj): initproj("interp123-0.5", filedefs={ 'tests': {'test_hello.py': "def test_hello(): pass"}, |
