summaryrefslogtreecommitdiffstats
path: root/src/bug_report.rs
diff options
context:
space:
mode:
authorTilmann Meyer <allescrafterx@gmail.com>2020-08-07 21:13:12 +0200
committerGitHub <noreply@github.com>2020-08-07 15:13:12 -0400
commit88b603be38aa623705e56e572eb174ae4d94107c (patch)
tree05033ec2adf013a55d3836a3f739e856880b5055 /src/bug_report.rs
parent8b0f589486e617c4fd52d870839a94d6e78f7379 (diff)
test: introduce env variable mocking (#1490)
Diffstat (limited to 'src/bug_report.rs')
-rw-r--r--src/bug_report.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bug_report.rs b/src/bug_report.rs
index 6735f2442..d9104ab1c 100644
--- a/src/bug_report.rs
+++ b/src/bug_report.rs
@@ -1,5 +1,6 @@
use crate::utils::exec_cmd;
+use clap::crate_version;
use std::fs;
use std::path::PathBuf;
@@ -254,5 +255,6 @@ mod tests {
let config_path = get_config_path("bash");
assert_eq!("/test/home/.bashrc", config_path.unwrap().to_str().unwrap());
+ env::remove_var("HOME");
}
}