aboutsummaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-09-29 14:58:23 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-09-29 15:08:18 -0400
commit49ea9c99164e052dc0c66750c822d350d62a547e (patch)
tree896909e90ebd21deca6b2d8359dae9c188e28d35 /Test.hs
parentab1ff5b7f3e558e0277edccf46cf9c9e5c0675e1 (diff)
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.
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Test.hs b/Test.hs
index 075f65e6a..5c3f362b5 100644
--- a/Test.hs
+++ b/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