Skip to content
Snippets Groups Projects
Commit efcb31fb authored by Artem Pelenitsyn's avatar Artem Pelenitsyn Committed by Mergify
Browse files

Revert "Revert "Turn off DeterministicTrivial test (see #8356)""

It still hits us. All updates are over on #8356.

This reverts commit c68ed017.
parent 5cfe705e
Branches gb/no-reconfigure-test-flags
No related tags found
No related merge requests found
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment