don't assume git-annex is in path when calling itself from test suite
This commit is contained in:
parent
3fba4f83ed
commit
3120b63560
1 changed files with 3 additions and 1 deletions
4
Test.hs
4
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.
|
||||
|
|
Loading…
Reference in a new issue