From 510e09909e59c306ca7505e3ab7abedd59146389 Mon Sep 17 00:00:00 2001 From: Phil de Joux Date: Sun, 1 Dec 2024 16:22:37 -0500 Subject: [PATCH] SkipIfWindows --- .../PackageTests/ConditionalAndImport/cabal.test.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs b/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs index 22e16ba23a3..36f705da064 100644 --- a/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs +++ b/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs @@ -3,7 +3,8 @@ import Test.Cabal.Prelude normalizeWindowsOutput :: String -> String normalizeWindowsOutput = if isWindows then map (\x -> case x of '/' -> '\\'; _ -> x) else id -main = cabalTest . withRepo "repo" . recordMode RecordMarked $ do +main = skipIfWindows "" >>= \_ -> cabalTest . withRepo "repo" . recordMode RecordMarked $ do + let log = recordHeader . pure cabal "v2-run" [ "some-exe" ]