test: curl --fail; use KUDOs
This commit is contained in:
parent
283ad65a10
commit
110e7ee1b4
6 changed files with 34 additions and 24 deletions
|
|
@ -41,7 +41,15 @@ let download ~tmp ~url =
|
|||
let res =
|
||||
OS.Cmd.run
|
||||
Cmd.(
|
||||
v "curl" % "--silent" % "--show-error" % "-o" % tmp % "-X" % "GET" % url)
|
||||
v "curl"
|
||||
% "--silent"
|
||||
% "--show-error"
|
||||
% "--fail"
|
||||
% "-o"
|
||||
% tmp
|
||||
% "-X"
|
||||
% "GET"
|
||||
% url)
|
||||
in
|
||||
match res with
|
||||
| Error (`Msg s) -> Fmt.failwith "download failure: %s" s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue