mirror of
https://github.com/sharkdp/bat.git
synced 2025-10-29 22:24:35 +00: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:
@@ -1,13 +1,13 @@
|
||||
#[cfg(feature = "git")]
|
||||
mod tester;
|
||||
|
||||
use crate::tester::BatTester;
|
||||
|
||||
macro_rules! snapshot_tests {
|
||||
($($test_name: ident: $style: expr,)*) => {
|
||||
$(
|
||||
#[test]
|
||||
#[cfg(feature = "git")]
|
||||
fn $test_name() {
|
||||
let bat_tester = BatTester::default();
|
||||
let bat_tester = tester::BatTester::default();
|
||||
bat_tester.test_snapshot(stringify!($test_name), $style);
|
||||
}
|
||||
)*
|
||||
|
||||
Reference in New Issue
Block a user