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