Skip snapshot test if Git is not available

closes #161
This commit is contained in:
sharkdp committed 2018-06-01 00:33:39 +02:00
1 parent 16874ab016
commit 86c1777205
3 files changed
+14 -2

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ pub struct BatTester {
impl BatTester {
pub fn new() -> Self {
modify_sample_file();
// Lifted from fd :)
let root = env::current_exe()
.expect("tests executable")
.parent()