mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-01 01:04:00 +00:00
fix: Fix compilation on NixOS with sandboxing (#164)
This commit is contained in:
parent
5ad07bf2d9
commit
7124e353db
@ -72,11 +72,11 @@ fn root_directory() -> io::Result<()> {
|
||||
#[test]
|
||||
fn directory_in_root() -> io::Result<()> {
|
||||
let output = common::render_module("directory")
|
||||
.arg("--path=/usr")
|
||||
.arg("--path=/etc")
|
||||
.output()?;
|
||||
let actual = String::from_utf8(output.stdout).unwrap();
|
||||
|
||||
let expected = format!("in {} ", Color::Cyan.bold().paint("/usr"));
|
||||
let expected = format!("in {} ", Color::Cyan.bold().paint("/etc"));
|
||||
assert_eq!(expected, actual);
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user