Skip to content

Commit 131d672

Browse files
authored
Merge pull request #8357 from ffaf1/skip-test
Turn off DeterministicTrivial test (see #8356)
2 parents dd312ec + cd7a912 commit 131d672

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

cabal-testsuite/PackageTests/NewSdist/DeterministicTrivial/deterministic.test.hs

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import Test.Cabal.Prelude
22
import qualified Data.ByteString as BS
3-
import qualified Data.ByteString.Base16 as BS16
4-
import qualified Crypto.Hash.SHA256 as SHA256
3+
-- import qualified Data.ByteString.Base16 as BS16
4+
-- import qualified Crypto.Hash.SHA256 as SHA256
55
import System.FilePath
66
( (</>) )
77

8+
-- Note: we cannot simply use `expectBroken` or `skip` or similar
9+
-- becuase this test fails on imports (see #8357).
10+
811
main = cabalTest $ do
912
cabal "v2-sdist" ["deterministic"]
1013
env <- getTestEnv
@@ -21,4 +24,6 @@ main = cabalTest $ do
2124
known <- liftIO (BS.readFile knownSdist)
2225
unknown <- liftIO (BS.readFile mySdist)
2326

24-
assertEqual "hashes didn't match for sdist" (BS16.encode $ SHA256.hash known) (BS16.encode $ SHA256.hash unknown)
27+
skipIf "#8356" True -- bogus, just to indicate that the test is skipped
28+
assertEqual "hashes didn't match for sdist" True True
29+
-- assertEqual "hashes didn't match for sdist" (BS16.encode $ SHA256.hash known) (BS16.encode $ SHA256.hash unknown)

0 commit comments

Comments
 (0)