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]
|
#[test]
|
||||||
fn directory_in_root() -> io::Result<()> {
|
fn directory_in_root() -> io::Result<()> {
|
||||||
let output = common::render_module("directory")
|
let output = common::render_module("directory")
|
||||||
.arg("--path=/usr")
|
.arg("--path=/etc")
|
||||||
.output()?;
|
.output()?;
|
||||||
let actual = String::from_utf8(output.stdout).unwrap();
|
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);
|
assert_eq!(expected, actual);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue