diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-28 19:11:24 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-28 19:11:24 +0400 |
commit | ec271d0444658d6a56c221473cfaf3b2b01abea2 (patch) | |
tree | c5743cfbd4e46e128afdbc4b94668eb04d46dcc5 | |
parent | e6a774caa70ebc6b0171eef4bcdf63de40b30905 (diff) |
Fix warnings
-rw-r--r-- | tests/Main.hs | 11 |
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 | |||
3 | import Control.Exception | 3 | import Control.Exception |
4 | import Control.Monad | 4 | import Control.Monad |
5 | import Data.Functor | 5 | import Data.Functor |
6 | import Data.List | ||
7 | import Data.Maybe | 6 | import Data.Maybe |
8 | import System.Exit | 7 | import System.Exit |
9 | import System.Environment | 8 | import 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 | ||
59 | terminateEnv :: IO () | 58 | terminateEnv :: IO () |
60 | terminateEnv = do | 59 | terminateEnv = 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 | ||
65 | runTestSuite :: [String] -> IO ExitCode | 64 | runTestSuite :: [String] -> IO ExitCode |
66 | runTestSuite args = do | 65 | runTestSuite 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 | ||
70 | main :: IO () | 69 | main :: IO () |