File tree 1 file changed +8
-3
lines changed
cabal-testsuite/PackageTests/NewSdist/DeterministicTrivial
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
import Test.Cabal.Prelude
2
2
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
5
5
import System.FilePath
6
6
( (</>) )
7
7
8
+ -- Note: we cannot simply use `expectBroken` or `skip` or similar
9
+ -- becuase this test fails on imports (see #8357).
10
+
8
11
main = cabalTest $ do
9
12
cabal " v2-sdist" [" deterministic" ]
10
13
env <- getTestEnv
@@ -21,4 +24,6 @@ main = cabalTest $ do
21
24
known <- liftIO (BS. readFile knownSdist)
22
25
unknown <- liftIO (BS. readFile mySdist)
23
26
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)
You can’t perform that action at this time.
0 commit comments