Skip to content

Commit

Permalink
Drop only .test.hs or .multitest.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Dec 19, 2023
1 parent feaa338 commit 967a8e9
Showing 1 changed file 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 967a8e9

Please sign in to comment.