aboutsummaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-02-16 16:29:04 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-02-16 16:29:04 -0400
commitb053e35cfe97aee6d31e09564850c1a60331bd1e (patch)
tree11220e313ccb5f0af8507d25467e338899518698 /Test.hs
parent06d16b62c2d49b0aae50966a85b7e1b708cd0884 (diff)
don't assume git-annex is in path when calling itself from test suite
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Test.hs b/Test.hs
index 16744c56d..405a286c1 100644
--- a/Test.hs
+++ b/Test.hs
@@ -71,6 +71,7 @@ import qualified Annex.WorkTree
import qualified Annex.Link
import qualified Annex.Init
import qualified Annex.CatFile
+import qualified Annex.Path
import qualified Annex.View
import qualified Annex.View.ViewedFile
import qualified Logs.View
@@ -1596,7 +1597,8 @@ git_annex command params = do
{- Runs git-annex and returns its output. -}
git_annex_output :: String -> [String] -> IO String
git_annex_output command params = do
- got <- Utility.Process.readProcess "git-annex" (command:params)
+ pp <- Annex.Path.programPath
+ got <- Utility.Process.readProcess pp (command:params)
-- Since the above is a separate process, code coverage stats are
-- not gathered for things run in it.
-- Run same command again, to get code coverage.