025c18128b
Default to the number of CPU cores, which seems about optimal on my laptop. Using one more saves me 2 seconds actually. Better packing of workers improves speed significantly. In 2 tests runs, I saw segfaulting workers despite my attempt to work around that issue. So detect when a worker does, and re-run it. Removed installSignalHandlers again, because I was seeing an error "lost signal due to full pipe", which I guess was somehow caused by using it. Sponsored-by: Dartmouth College's Datalad project
23 lines
463 B
Haskell
23 lines
463 B
Haskell
{- git-annex test data types.
|
|
-
|
|
- Copyright 2011-2022 Joey Hess <id@joeyh.name>
|
|
-
|
|
- Licensed under the GNU AGPL version 3 or higher.
|
|
-}
|
|
|
|
module Types.Test where
|
|
|
|
import Test.Tasty.Options
|
|
|
|
import Types.Concurrency
|
|
import Types.Command
|
|
|
|
data TestOptions = TestOptions
|
|
{ tastyOptionSet :: OptionSet
|
|
, keepFailuresOption :: Bool
|
|
, fakeSsh :: Bool
|
|
, concurrentJobs :: Maybe Concurrency
|
|
, internalData :: CmdParams
|
|
}
|
|
|
|
type TestRunner = TestOptions -> IO ()
|