Always run snapshot test

This commit is contained in:
sharkdp 2018-06-02 19:03:20 +02:00
parent c9f7a0c126
commit c91511cca1
1 changed files with 0 additions and 12 deletions

View File

@ -1,6 +1,5 @@
mod tester;
use std::process::{Command, Stdio};
use tester::BatTester;
static STYLES: &'static [&'static str] = &[
@ -25,17 +24,6 @@ static STYLES: &'static [&'static str] = &[
#[test]
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();
for style in STYLES {