@@ -17,17 +17,12 @@ import qualified Cardano.Testnet.Test.SubmitApi.Transaction
1717import Prelude
1818
1919import qualified System.Environment as E
20- import qualified System.Exit as IO
21- import qualified System.IO as IO
2220import System.IO (BufferMode (LineBuffering ), hSetBuffering , hSetEncoding , stdout , utf8 )
2321
2422import Testnet.Property.Run (ignoreOnMacAndWindows , ignoreOnWindows )
2523
2624import qualified Test.Tasty as T
2725import Test.Tasty (TestTree )
28- import qualified Test.Tasty.Ingredients as T
29- import qualified Test.Tasty.Options as T
30- import qualified Test.Tasty.Runners as T
3126
3227tests :: IO TestTree
3328tests = do
@@ -92,21 +87,6 @@ tests = do
9287
9388 ]
9489
95- defaultMainWithIngredientsAndOptions :: [T. Ingredient ] -> T. OptionSet -> T. TestTree -> IO ()
96- defaultMainWithIngredientsAndOptions ins opts testTree = do
97- T. installSignalHandlers
98- parsedOpts <- T. parseOptions ins testTree
99- let opts' = opts <> parsedOpts
100-
101- case T. tryIngredients ins opts' testTree of
102- Nothing -> do
103- IO. hPutStrLn IO. stderr
104- " No ingredients agreed to run. Something is wrong either with your ingredient set or the options."
105- IO. exitFailure
106- Just act -> do
107- ok <- act
108- if ok then IO. exitSuccess else IO. exitFailure
109-
11090main :: IO ()
11191main = do
11292 Crypto. cryptoInit
@@ -115,6 +95,4 @@ main = do
11595 hSetEncoding stdout utf8
11696 args <- E. getArgs
11797
118- let opts = T. singleOption $ T. NumThreads 1
119-
120- E. withArgs args $ tests >>= defaultMainWithIngredientsAndOptions T. defaultIngredients opts
98+ E. withArgs args $ tests >>= T. defaultMainWithIngredients T. defaultIngredients
0 commit comments