remove leftovers from removed TestSuite build flag

Test suite is always built, so this can be simplified.
This commit is contained in:
Joey Hess 2018-11-19 12:39:16 -04:00
parent 1f9f220816
commit 83109affd1
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 15 additions and 19 deletions

View file

@ -10,21 +10,20 @@ module Command.Test where
import Command
import Types.Test
cmd :: Parser TestOptions -> Maybe TestRunner -> Command
cmd :: Parser TestOptions -> TestRunner -> Command
cmd optparser runner = noRepo (startIO runner <$$> const optparser) $
dontCheck repoExists $
command "test" SectionTesting
"run built-in test suite"
paramNothing (seek runner <$$> const optparser)
seek :: Maybe TestRunner -> TestOptions -> CommandSeek
seek :: TestRunner -> TestOptions -> CommandSeek
seek runner o = commandAction $ start runner o
start :: Maybe TestRunner -> TestOptions -> CommandStart
start :: TestRunner -> TestOptions -> CommandStart
start runner o = do
liftIO $ startIO runner o
stop
startIO :: Maybe TestRunner -> TestOptions -> IO ()
startIO Nothing _ = warningIO "git-annex was built without its test suite; not testing"
startIO (Just runner) o = runner o
startIO :: TestRunner -> TestOptions -> IO ()
startIO runner o = runner o