break dependency cycle by special casing running of test command

This commit is contained in:
Joey Hess 2013-02-27 15:48:26 -04:00
parent 2b805b9589
commit 3a32454b13
3 changed files with 14 additions and 19 deletions

View file

@ -941,8 +941,8 @@ unannexed = runchecks [checkregularfile, checkcontent, checkwritable]
prepare :: IO ()
prepare = do
whenM (doesDirectoryExist) tmpdir $
error $ "The temporary directory " ++ tmpdir ++ "already exists; cannot run test suite."
whenM (doesDirectoryExist tmpdir) $
error $ "The temporary directory " ++ tmpdir ++ " already exists; cannot run test suite."
-- While PATH is mostly avoided, the commit hook does run it,
-- and so does git_annex_output. Make sure that the just-built