summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2014-04-28 23:19:28 -0700
committerMarc Abramowitz <marc@marc-abramowitz.com>2014-04-28 23:19:28 -0700
commit0b808e4640861a1f5196201db99a865839781e48 (patch)
tree1f457000f0ce2d0326adb6e1df3b76679f2e8ea9
parent2cd6b250355d795f87c6d05487b5983900617b1a (diff)
downloadtox-0b808e4640861a1f5196201db99a865839781e48.tar.gz
Add test_run_custom_install_command_error
-rw-r--r--tests/test_z_cmdline.py13
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"},