id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	difficulty	ghcversion	platform
930	cabal test is dropping --test-option flags	tibbe	ttuegel	"Adding two `--test-option` flags doesn't work correctly. For example, this

{{{
cabal test --test-option=--plain
}}}

causes cabal to (correctly) pass the `--plain` flag to the underlying test-framework binary. However, this

{{{
cabal test --test-option=--plain --test-option=--jxml=dist/unit-tests.xml
}}}

drops it on the ground. Some debug output

{{{
cabal test --test-option=--plain --test-option=--jxml=dist/unit-tests.xml -v3
Using external setup method with build-type Custom
Creating ./dist/setup (and its parents)
Using Cabal library version 1.14.0
Using ./Setup.hs as setup script.
./dist/setup/setup test --verbose=3 --test-options=--jxml=dist/unit-tests.xml
--test-option=--jxml=dist/unit-tests.xml
}}}

There looks like there's an extra newline in the `./dist/setup/setup` invocation, perhaps that's the issue?

The problem can be reproduced on Cabal's own test suite."	defect	new	normal	Cabal-1.16	Cabal library	1.10.2.0	normal				unknown		
