summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-02-28 19:11:24 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-02-28 19:11:24 +0400
commitec271d0444658d6a56c221473cfaf3b2b01abea2 (patch)
treec5743cfbd4e46e128afdbc4b94668eb04d46dcc5 /tests
parente6a774caa70ebc6b0171eef4bcdf63de40b30905 (diff)
Fix warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/Main.hs11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/Main.hs b/tests/Main.hs
index 75321ec7..204d1656 100644
--- a/tests/Main.hs
+++ b/tests/Main.hs
@@ -3,7 +3,6 @@ module Main where
3import Control.Exception 3import Control.Exception
4import Control.Monad 4import Control.Monad
5import Data.Functor 5import Data.Functor
6import Data.List
7import Data.Maybe 6import Data.Maybe
8import System.Exit 7import System.Exit
9import System.Environment 8import System.Environment
@@ -49,22 +48,22 @@ setupEnv EnvOpts {..}
49 return (Just ()) 48 return (Just ())
50 49
51 | Just client <- testClient = do 50 | Just client <- testClient = do
52 printf "Bad client `%s`, use one of %s" client (show (fst <$> clients)) 51 _ <- printf "Bad client `%s`, use one of %s\n" client (show (fst <$> clients))
53 return Nothing 52 return Nothing
54 53
55 | isNothing testClient = do 54 | otherwise = do
56 printf "Running without remote client" 55 _ <- printf "Running without remote client\n"
57 return (Just ()) 56 return (Just ())
58 57
59terminateEnv :: IO () 58terminateEnv :: IO ()
60terminateEnv = do 59terminateEnv = do
61 printf "closing screen session: %s" sessionName 60 _ <- printf "closing screen session: %s\n" sessionName
62 _ <- system (printf "screen -S %s -X quit" sessionName) 61 _ <- system (printf "screen -S %s -X quit" sessionName)
63 return () 62 return ()
64 63
65runTestSuite :: [String] -> IO ExitCode 64runTestSuite :: [String] -> IO ExitCode
66runTestSuite args = do 65runTestSuite args = do
67 printf "running hspec test suite with args: %s\n" (show args) 66 _ <- printf "running hspec test suite with args: %s\n" (show args)
68 catch (withArgs args (hspec spec) >> return ExitSuccess) return 67 catch (withArgs args (hspec spec) >> return ExitSuccess) return
69 68
70main :: IO () 69main :: IO ()