Set EMAIL when running test suite so that git does not need to be configured first. Closes: #638998
This commit is contained in:
parent
203148363f
commit
20259c2955
2 changed files with 10 additions and 0 deletions
3
test.hs
3
test.hs
|
@ -646,6 +646,9 @@ prepare = do
|
|||
p <- getEnvDefault "PATH" ""
|
||||
setEnv "PATH" (cwd ++ ":" ++ p) True
|
||||
setEnv "TOPDIR" cwd True
|
||||
-- Avoid git complaining if it cannot determine the user's email
|
||||
-- address.
|
||||
setEnv "EMAIL" "git-annex test <test@example.com>" True
|
||||
|
||||
changeToTmpDir :: FilePath -> IO ()
|
||||
changeToTmpDir t = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue