Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,6 @@ tests/file.mkv
tests/file-test.mkv
tests/file_2.mkv
.profiles

# macOS
.DS_Store
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ TEST_TWO_FILE := tests/file_2.mkv

TEST_DIR := tests/

# --fail makes curl exit non-zero on HTTP errors instead of writing the error
# body into the target file, which would leave a corrupt "MKV" behind.
CURL := curl -sSL --fail --retry 3 --retry-delay 2
# --fail exits non-zero on HTTP errors instead of writing the error body into the
# target file, which would leave a corrupt "MKV" behind.
# --retry alone does not cover a stall mid-transfer ("curl: (56) Recv failure"),
# which is how a 71 MB download actually fails on a flaky runner, so
# --retry-all-errors is needed. --continue-at - resumes into the same .part file
# rather than restarting from zero on every attempt.
CURL := curl -sSL --fail --retry 5 --retry-delay 2 --retry-all-errors --continue-at -

.PHONY: test clean

Expand Down
Loading