From a0f855f2250600a0f9166b7604ef5942f6c7bad9 Mon Sep 17 00:00:00 2001 From: Francesco Ariis Date: Wed, 10 Aug 2022 15:55:16 +0200 Subject: [PATCH] Turn off DeterministicTrivial test (see #8356) --- .../DeterministicTrivial/deterministic.test.hs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cabal-testsuite/PackageTests/NewSdist/DeterministicTrivial/deterministic.test.hs b/cabal-testsuite/PackageTests/NewSdist/DeterministicTrivial/deterministic.test.hs index 64b0a329a95..070cd539580 100644 --- a/cabal-testsuite/PackageTests/NewSdist/DeterministicTrivial/deterministic.test.hs +++ b/cabal-testsuite/PackageTests/NewSdist/DeterministicTrivial/deterministic.test.hs @@ -1,11 +1,15 @@ import Test.Cabal.Prelude import qualified Data.ByteString as BS -import qualified Data.ByteString.Base16 as BS16 +-- import qualified Data.ByteString.Base16 as BS16 import qualified Crypto.Hash.SHA256 as SHA256 import System.FilePath ( () ) + -- Note: we cannot simply use `expectBroken` or `skip` or similar + -- becuase this test fails on imports (see #8357). + main = cabalTest $ do + cabal "v2-sdist" ["deterministic"] env <- getTestEnv let dir = testCurrentDir env @@ -21,4 +25,6 @@ main = cabalTest $ do known <- liftIO (BS.readFile knownSdist) unknown <- liftIO (BS.readFile mySdist) - assertEqual "hashes didn't match for sdist" (BS16.encode $ SHA256.hash known) (BS16.encode $ SHA256.hash unknown) + skipIf "#8356" True -- bogus, just to indicate that the test is skipped + assertEqual "hashes didn't match for sdist" True True + -- assertEqual "hashes didn't match for sdist" (BS16.encode $ SHA256.hash known) (BS16.encode $ SHA256.hash unknown)