Skip to content

Commit

Permalink
Merge pull request haskell#9526 from cabalism/fix/double-banger-testn…
Browse files Browse the repository at this point in the history
…ame-9513

Double banger test names
  • Loading branch information
mergify[bot] authored Dec 21, 2023
2 parents feaa338 + 78c78d1 commit 5b44c05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cabal-testsuite/src/Test/Cabal/Monad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b44c05

Please sign in to comment.