Skip to content

cabal test is dropping --test-option flags #920

bos opened this Issue May 24, 2012 · 0 comments

3 participants

Haskell member
bos commented May 24, 2012

(Imported from Trac #930, reported by @tibbe on 2012-03-12)

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
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.

@ttuegel ttuegel was assigned May 24, 2012
@23Skidoo 23Skidoo modified the milestone: Cabal-1.22, Cabal-1.18 Apr 20, 2014
@ttuegel ttuegel modified the milestone: Cabal-1.24, Cabal-1.22 Apr 23, 2015
@23Skidoo 23Skidoo modified the milestone: Cabal 1.24, Cabal 1.26 Feb 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.