mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-31 15:12:12 +00:00 
			
		
		
		
	Always run snapshot test
This commit is contained in:
		| @@ -1,6 +1,5 @@ | |||||||
| mod tester; | mod tester; | ||||||
|  |  | ||||||
| use std::process::{Command, Stdio}; |  | ||||||
| use tester::BatTester; | use tester::BatTester; | ||||||
|  |  | ||||||
| static STYLES: &'static [&'static str] = &[ | static STYLES: &'static [&'static str] = &[ | ||||||
| @@ -25,17 +24,6 @@ static STYLES: &'static [&'static str] = &[ | |||||||
|  |  | ||||||
| #[test] | #[test] | ||||||
| fn test_snapshots() { | fn test_snapshots() { | ||||||
|     let status = Command::new("git") |  | ||||||
|         .arg("rev-parse") |  | ||||||
|         .stdout(Stdio::null()) |  | ||||||
|         .stderr(Stdio::null()) |  | ||||||
|         .status(); |  | ||||||
|  |  | ||||||
|     if !status.map(|s| s.success()).unwrap_or(false) { |  | ||||||
|         // Git not available or not a git repository. Skipping snapshot test. |  | ||||||
|         return; |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     let bat_tester = BatTester::new(); |     let bat_tester = BatTester::new(); | ||||||
|  |  | ||||||
|     for style in STYLES { |     for style in STYLES { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user