Skip to content

tests: use os.linesep in the repo-info default assertions - #10442

Merged
ThomasWaldmann merged 1 commit into
borgbackup:masterfrom
ThomasWaldmann:windows-repo-info-linesep
Sep 27, 2026
Merged

ThomasWaldmann merged 1 commit into
borgbackup:masterfrom
ThomasWaldmann:windows-repo-info-linesep

Conversation

@ThomasWaldmann

Copy link
Copy Markdown
Member

The new repo-info assertions from #10438 expected lines ending in "\n", but on Windows the output uses CRLF, so 6 tests failed in windows_tests (e.g. the 2.0.0b25 tag run). Use os.linesep, like create_cmd_test.py already does.

🤖 Generated with Claude Code

On Windows, repo-info output lines end with CRLF, so the assertions
expecting a trailing "\n" failed there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ThomasWaldmann
ThomasWaldmann merged commit 6c16704 into borgbackup:master Sep 27, 2026
20 checks passed
@ThomasWaldmann
ThomasWaldmann deleted the windows-repo-info-linesep branch September 27, 2026 15:06
@codecov

codecov Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.66%. Comparing base (f694ba3) to head (e893f13).
⚠️ Report is 9 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10442      +/-   ##
==========================================
- Coverage   88.70%   88.66%   -0.04%     
==========================================
  Files         103      103              
  Lines       19284    19284              
  Branches     3004     3004              
==========================================
- Hits        17105    17099       -6     
- Misses       1507     1515       +8     
+ Partials      672      670       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant