Skip to content
Snippets Groups Projects
Unverified Commit 967a8e9b authored by Phil de Joux's avatar Phil de Joux
Browse files

Drop only .test.hs or .multitest.hs

parent feaa338c
No related branches found
No related tags found
No related merge requests found
......@@ -232,7 +232,11 @@ runTestM mode m = withSystemTempDirectory "cabal-testsuite" $ \tmp_dir -> do
args <- execParser (info testArgParser Data.Monoid.mempty)
let dist_dir = testArgDistDir args
(script_dir0, script_filename) = splitFileName (testArgScriptPath args)
script_base = dropExtensions script_filename
stripped = stripExtension ".test.hs" script_filename
<|> stripExtension ".multitest.hs" script_filename
script_base = fromMaybe (dropExtensions script_filename) stripped
-- Canonicalize this so that it is stable across working directory changes
script_dir <- canonicalizePath script_dir0
senv <- mkScriptEnv verbosity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment