Merge branch 'master' into backtrace

This commit is contained in:
Ajeet D'Souza 2020-12-13 11:01:07 +05:30
commit 1fb17cea38
1 changed files with 5 additions and 0 deletions

View File

@ -144,7 +144,12 @@ mod tests {
fn fish_fish_#i() { fn fish_fish_#i() {
let opts = dbg!(&opts()[i]); let opts = dbg!(&opts()[i]);
let source = Fish(opts).render().unwrap(); let source = Fish(opts).render().unwrap();
let tempdir = tempfile::tempdir().unwrap();
let tempdir = tempdir.path().to_str().unwrap();
Command::new("fish") Command::new("fish")
.env("HOME", tempdir) // fish needs a writeable $HOME directory
.args(&["--command", &source, "--private"]) .args(&["--command", &source, "--private"])
.assert() .assert()
.success() .success()