mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 23:08:30 +01:00
Workaround for some test failures
This commit is contained in:
parent
9f46ad07ec
commit
b02fbaafa4
@ -86,8 +86,12 @@ runTestSuite settings testdir (packageName, SelectedPackageInfo {..}) = do
|
||||
env' <- getModifiedEnv settings
|
||||
let menv addGPP
|
||||
= Just $ (if addGPP then (("GHC_PACKAGE_PATH", packageDir settings ++ ":"):) else id)
|
||||
$ ("HASKELL_PACKAGE_SANDBOX", packageDir settings)
|
||||
: env'
|
||||
$ addSandbox env'
|
||||
-- FIXME why do these packages require the workaround?
|
||||
bannedSandboxVar = map PackageName $ words "wai-logger warp"
|
||||
addSandbox
|
||||
| packageName `elem` bannedSandboxVar = id
|
||||
| otherwise = (("HASKELL_PACKAGE_SANDBOX", packageDir settings):)
|
||||
|
||||
let runGen addGPP cmd args wdir handle' = do
|
||||
ph <- runProcess cmd args (Just wdir) (menv addGPP) Nothing (Just handle') (Just handle')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user