test: Fix reversion that made it only run inside a git repository.
Using annexeval to run probeCrippledFileSystem' caused Git.CurrentRepo.get to be run. Fixed easily since probeCrippledFileSystem' had no need to use the Annex monad. This commit was sponsored by Ethan Aubin.
This commit is contained in:
parent
9b94454b25
commit
f84e34883c
4 changed files with 43 additions and 22 deletions
2
Test.hs
2
Test.hs
|
@ -147,7 +147,7 @@ runner = Just go
|
|||
exitWith exitcode
|
||||
runsubprocesstests opts (Just _) = isolateGitConfig $ do
|
||||
ensuretmpdir
|
||||
crippledfilesystem <- annexeval $ Annex.Init.probeCrippledFileSystem' tmpdir
|
||||
crippledfilesystem <- fst <$> Annex.Init.probeCrippledFileSystem' tmpdir
|
||||
case tryIngredients ingredients (tastyOptionSet opts) (tests crippledfilesystem opts) of
|
||||
Nothing -> error "No tests found!?"
|
||||
Just act -> ifM act
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue