Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off DeterministicTrivial test (see #8356) (backport #8357) #8369

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)