Open sjakobi opened 4 years ago
Normally ''
would be interpreted and stripped by the shell. It looks like cabal is not doing that (i.e. it tries to pass the single quotes verbatim to the test suite). That's not necessarily a bug, though it would be nice if the precise semantics of --test-options
was documented somewhere (is it?).
In this particular case I think you can simply drop the single quotes, as the outer double quotes would prevent the shell from interpreting the \/
, but if the agument contained a white space, I wouldn't know how to pass it.
In this particular case I think you can simply drop the single quotes, as the outer double quotes would prevent the shell from interpreting the
\/
Yes! --test-options "-p /type-inference\/failure/"
works. How had I not tried this before?!
I wonder if #8093 improved/resolves this.
Or breaks. Let's add the example above as a test for https://github.com/haskell/cabal/pull/8093.
dhall
has a tasty test-suite which I would like to execute with the arguments-p /type-inference\/failure/
.The arguments that
cabal
ends up passing to thetasty
executable are-p ''\''/type-inference\/failure/'\'''
: