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 28ce21f commit 521c3afCopy full SHA for 521c3af
cli/tests/cli_integration.rs
@@ -28,17 +28,13 @@ fn ontoenv_bin() -> PathBuf {
28
}
29
30
fn tmp_dir(name: &str) -> PathBuf {
31
- let mut d = std::env::current_dir().unwrap();
32
- d.push(format!(
33
- "target/cli_integration_{}_{}",
34
- name,
35
- std::process::id()
36
- ));
37
- if d.exists() {
38
- let _ = fs::remove_dir_all(&d);
+ let mut base = std::env::temp_dir();
+ base.push(format!("ontoenv-cli-{}-{}", name, std::process::id()));
+ if base.exists() {
+ let _ = fs::remove_dir_all(&base);
39
40
- fs::create_dir_all(&d).unwrap();
41
- d
+ fs::create_dir_all(&base).unwrap();
+ base
42
43
44
fn write_ttl(path: &PathBuf, ontology_uri: &str, extra: &str) {
0 commit comments