Skip to content

Commit 85ab096

Browse files
committed
allow tests to deal with shared drives by adjusting trust expectation (#426)
As is the case with my VM setup that can't get full trust while shared and it's not a great thing to get used to a certain set of tests to fail.
1 parent e029eb4 commit 85ab096

File tree

1 file changed

+5
-1
lines changed
  • git-discover/tests/upwards

1 file changed

+5
-1
lines changed

git-discover/tests/upwards/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ use std::path::PathBuf;
33
use git_discover::repository::Kind;
44

55
fn expected_trust() -> git_sec::Trust {
6-
git_sec::Trust::Full
6+
if std::env::var_os("GITOXIDE_TEST_EXPECT_REDUCED_TRUST").is_some() {
7+
git_sec::Trust::Reduced
8+
} else {
9+
git_sec::Trust::Full
10+
}
711
}
812

913
mod ceiling_dirs;

0 commit comments

Comments
 (0)