1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-03 11:52:26 +01:00

Skip snapshot test if Git is not available

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

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()