We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a789490 commit 1caf3aeCopy full SHA for 1caf3ae
tests/tools/src/lib.rs
@@ -88,6 +88,11 @@ pub fn scripted_fixture_repo_read_only_with_args(
88
script_name: impl AsRef<Path>,
89
args: impl IntoIterator<Item = &'static str>,
90
) -> Result<PathBuf> {
91
+ // Assure tempfiles get removed when aborting the test.
92
+ git_lock::tempfile::setup(
93
+ git_lock::tempfile::SignalHandlerMode::DeleteTempfilesOnTerminationAndRestoreDefaultBehaviour,
94
+ );
95
+
96
let script_location = script_name.as_ref();
97
let script_path = fixture_path(script_location);
98
0 commit comments