Skip to content

Commit 34500f0

Browse files
kit-ty-katerjbou
authored andcommitted
reftest: Make sure download.test does not fail due to a checksum collision in the download cache
1 parent d2f2e6b commit 34500f0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

master_changes.md

+1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ users)
164164
* Extend the tests on opam admin to include packages using builtin global variables [#6331 @kit-ty-kate]
165165
* Extend the tests on opam admin check by including all the arguments [#6331 @kit-ty-kate @rjbou]
166166
* Add double pinning test in case of opam/opam opam file [#6343 @rjbou]
167+
* Make sure `download.test` does not fail due to a checksum collision in the download cache [#6378 @kit-ty-kate]
167168

168169
### Engine
169170

tests/reftests/download.test

+4
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ echo "}" >> "$file"
178178
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
179179
[default] synchronised from file://${BASEDIR}/REPO
180180
Now run 'opam upgrade' to apply any package updates.
181+
### opam clean -c
182+
Clearing cache of downloaded files
181183
### opam install foo --download-only -vv --debug-level=-1 | grep -v "^+-" | sed-cmd rsync | sed-cmd tar | grep -v "state-.*.export" | "md5[/\\].*" -> "md5-dir/"
182184
The following actions will be performed:
183185
=== install 1 package
@@ -251,6 +253,8 @@ url {
251253
src: "https://github.com/UnixJunkie/get_line/archive/v1.0.0.tar.gz"
252254
checksum: "md5=c9c157af4229fbb45d3f59f0d6d75dbe"
253255
}
256+
### opam clean -c
257+
Clearing cache of downloaded files
254258
### 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"
255259
The following actions will be performed:
256260
=== install 1 package

0 commit comments

Comments
 (0)