Skip to content

Commit a123a28

Browse files
committed
refactor: move -ignore-dot-ghci to repl fixture
1 parent 007da91 commit a123a28

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/integration/lib/StackTest/Repl.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ runRepl cmd args actions = do
9797
repl :: HasCallStack => [String] -> Repl () -> IO ()
9898
repl args action = do
9999
stackExe' <- stackExe
100-
ec <- runRepl stackExe' ("repl":args) action
100+
ec <- runRepl stackExe' ("repl" : "--ghci-options=-ignore-dot-ghci" : args) action
101101
unless (ec == ExitSuccess) $ pure ()
102102
-- TODO: Understand why the exit code is 1 despite running GHCi tests
103103
-- successfully.

tests/integration/tests/3926-ghci-with-sublibraries/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ main
1717
replThread
1818

1919
replThread :: IO ()
20-
replThread = repl ["--ghci-options=-ignore-dot-ghci"] $ do
20+
replThread = repl [] $ do
2121
-- The command must be issued before searching the output for the next prompt,
2222
-- otherwise, on Windows from msys2-20230526, `stack repl` encounters a EOF
2323
-- and terminates gracefully.

tests/integration/tests/4270-files-order/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import StackTest.Repl
55
main :: IO ()
66
main = do
77
stack ["build"]
8-
repl ["--ghci-options=-ignore-dot-ghci"] $ do
8+
repl [] $ do
99
-- The command must be issued before searching the output for the next
1010
-- prompt, otherwise, on Windows from msys2-20230526, `stack repl`
1111
-- encounters a EOF and terminates gracefully.

tests/integration/tests/module-added-multiple-times/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Control.Monad
22
import StackTest.Repl
33

44
main :: IO ()
5-
main = repl ["--ghci-options=-ignore-dot-ghci"] $ do
5+
main = repl [] $ do
66
-- The command must be issued before searching the output for the next prompt,
77
-- otherwise, on Windows from msys2-20230526, `stack repl` encounters a EOF
88
-- and terminates gracefully.

0 commit comments

Comments
 (0)