Skip to content

Commit

Permalink
Re #6531 Fix 4095-utf8-pure-nix test when in Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Mar 26, 2024
1 parent 400dd12 commit 6b1fbdc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration/tests/4095-utf8-pure-nix/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ main
| isMacOSX =
logInfo "Disabled on macOS as it takes too long to run, since it tries \
\to build GHC."
| otherwise = do
| otherwise = unless getInContainer $ do
stack ["build", "--nix-pure"]
stack ["exec", "--nix-pure", "ShowUnicode"]

-- | 'True' if we are currently running inside a Docker container.
getInContainer :: MonadIO m => m Bool
getInContainer = liftIO (isJust <$> lookupEnv "STACK_IN_CONTAINER")

0 comments on commit 6b1fbdc

Please # to comment.