mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-04 04:12:31 +01:00
CI: Check MSRV without git feature enabled
git2-rs MSRV policy is to only support latest stable rust (see https://github.com/rust-lang/git2-rs#rust-version-requirements), so it does not make sense to run our MSRV tests with git enabled.
This commit is contained in:
@@ -987,6 +987,7 @@ fn header_full_binary() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "git")] // Expected output assumes git is enabled
|
||||
fn header_default() {
|
||||
bat()
|
||||
.arg("--paging=never")
|
||||
@@ -1011,6 +1012,7 @@ fn header_default() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "git")] // Expected output assumes git is enabled
|
||||
fn header_default_is_default() {
|
||||
bat()
|
||||
.arg("--paging=never")
|
||||
@@ -1373,6 +1375,7 @@ fn plain_mode_does_not_add_nonexisting_newline() {
|
||||
|
||||
// Regression test for https://github.com/sharkdp/bat/issues/299
|
||||
#[test]
|
||||
#[cfg(feature = "git")] // Expected output assumes git is enabled
|
||||
fn grid_for_file_without_newline() {
|
||||
bat()
|
||||
.arg("--paging=never")
|
||||
|
Reference in New Issue
Block a user