@@ -28,17 +28,12 @@ import qualified Cardano.Testnet.Test.SubmitApi.Babbage.Transaction
28
28
import Prelude
29
29
30
30
import qualified System.Environment as E
31
- import qualified System.Exit as IO
32
- import qualified System.IO as IO
33
31
import System.IO (BufferMode (LineBuffering ), hSetBuffering , hSetEncoding , stdout , utf8 )
34
32
35
33
import Testnet.Property.Run (ignoreOnMacAndWindows , ignoreOnWindows )
36
34
37
35
import qualified Test.Tasty as T
38
36
import Test.Tasty (TestTree )
39
- import qualified Test.Tasty.Ingredients as T
40
- import qualified Test.Tasty.Options as T
41
- import qualified Test.Tasty.Runners as T
42
37
43
38
tests :: IO TestTree
44
39
tests = do
@@ -95,21 +90,6 @@ tests = do
95
90
]
96
91
]
97
92
98
- defaultMainWithIngredientsAndOptions :: [T. Ingredient ] -> T. OptionSet -> T. TestTree -> IO ()
99
- defaultMainWithIngredientsAndOptions ins opts testTree = do
100
- T. installSignalHandlers
101
- parsedOpts <- T. parseOptions ins testTree
102
- let opts' = opts <> parsedOpts
103
-
104
- case T. tryIngredients ins opts' testTree of
105
- Nothing -> do
106
- IO. hPutStrLn IO. stderr
107
- " No ingredients agreed to run. Something is wrong either with your ingredient set or the options."
108
- IO. exitFailure
109
- Just act -> do
110
- ok <- act
111
- if ok then IO. exitSuccess else IO. exitFailure
112
-
113
93
main :: IO ()
114
94
main = do
115
95
Crypto. cryptoInit
@@ -118,6 +98,4 @@ main = do
118
98
hSetEncoding stdout utf8
119
99
args <- E. getArgs
120
100
121
- let opts = T. singleOption $ T. NumThreads 1
122
-
123
- E. withArgs args $ tests >>= defaultMainWithIngredientsAndOptions T. defaultIngredients opts
101
+ E. withArgs args $ tests >>= T. defaultMainWithIngredients T. defaultIngredients
0 commit comments