remove leftovers from removed TestSuite build flag
Test suite is always built, so this can be simplified.
This commit is contained in:
parent
1f9f220816
commit
83109affd1
4 changed files with 15 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue