on master help sign in
Always run snapshot test
commitc91511cca14655b40263361684df684310c05dc3 authorsharkdp <davidpeter@web.de> dateSat 2 Jun 2018, 19:03 (8 years ago) parentc9f7a0c
1 file changed−12
tests/tests.rs−12
tests/tests.rs−12
@@ -1,6 +1,5 @@
11mod tester;
22
3−use std::process::{Command, Stdio};
43use tester::BatTester;
54
65static STYLES: &'static [&'static str] = &[
@@ -25,17 +24,6 @@ static STYLES: &'static [&'static str] = &[
2524
2625#[test]
2726fn test_snapshots() {
28− let status = Command::new("git")
29− .arg("rev-parse")
30− .stdout(Stdio::null())
31− .stderr(Stdio::null())
32− .status();
33−
34− if !status.map(|s| s.success()).unwrap_or(false) {
35− // Git not available or not a git repository. Skipping snapshot test.
36− return;
37− }
38−
3927 let bat_tester = BatTester::new();
4028
4129 for style in STYLES {