Skip to content

Commit

Permalink
Merge pull request #6378 from kit-ty-kate/reftest-checksum-collision
Browse files Browse the repository at this point in the history
Make sure download.test does not fail due to a checksum collision in the download cache
  • Loading branch information
rjbou authored Feb 5, 2025
2 parents eb3f30f + 34500f0 commit 42b8619
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ users)
* Extend the tests on opam admin to include packages using builtin global variables [#6331 @kit-ty-kate]
* Extend the tests on opam admin check by including all the arguments [#6331 @kit-ty-kate @rjbou]
* Add double pinning test in case of opam/opam opam file [#6343 @rjbou]
* Make sure `download.test` does not fail due to a checksum collision in the download cache [#6378 @kit-ty-kate]

### Engine

Expand Down
4 changes: 4 additions & 0 deletions tests/reftests/download.test
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ echo "}" >> "$file"
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file://${BASEDIR}/REPO
Now run 'opam upgrade' to apply any package updates.
### opam clean -c
Clearing cache of downloaded files
### opam install foo --download-only -vv --debug-level=-1 | grep -v "^+-" | sed-cmd rsync | sed-cmd tar | grep -v "state-.*.export" | "md5[/\\].*" -> "md5-dir/"
The following actions will be performed:
=== install 1 package
Expand Down Expand Up @@ -251,6 +253,8 @@ url {
src: "https://github.com/UnixJunkie/get_line/archive/v1.0.0.tar.gz"
checksum: "md5=c9c157af4229fbb45d3f59f0d6d75dbe"
}
### opam clean -c
Clearing cache of downloaded files
### opam install baz --download-only -vv --debug-level=-1 | grep -v "^+-" | sed-cmd wget | sed-cmd tar | "${OPAMVERSION}" -> "current" | grep -v "state-.*.export" | "md5[/\\].*" -> "md5-dir/" | grep -v "OPAM[/\\]log"
The following actions will be performed:
=== install 1 package
Expand Down

0 comments on commit 42b8619

Please sign in to comment.