From 53dd68a9f2db12479cf01ce082b8a2fcf0c6c414 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) (cherry picked from commit cd7a91281c72c1b4587c155264180307646ce36f) --- .../DeterministicTrivial/deterministic.test.hs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cabal-testsuite/PackageTests/NewSdist/DeterministicTrivial/deterministic.test.hs b/cabal-testsuite/PackageTests/NewSdist/DeterministicTrivial/deterministic.test.hs index 64b0a329a95..67c2944b39c 100644 --- a/cabal-testsuite/PackageTests/NewSdist/DeterministicTrivial/deterministic.test.hs +++ b/cabal-testsuite/PackageTests/NewSdist/DeterministicTrivial/deterministic.test.hs @@ -1,10 +1,13 @@ import Test.Cabal.Prelude import qualified Data.ByteString as BS -import qualified Data.ByteString.Base16 as BS16 -import qualified Crypto.Hash.SHA256 as SHA256 +-- 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 @@ -21,4 +24,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)