nix: fix test with ANSI escape characters
The nix commands print the error: commands in red, the ANSI reset caused one of the tests to fail.
This commit is contained in:
parent
69b7a315ef
commit
20a85b6fa7
|
@ -261,6 +261,7 @@ mod tests {
|
|||
|
||||
let buildlog = lines
|
||||
.into_iter()
|
||||
.map(|line| line.replace("\u{1b}[0m", "")) // ANSI reset
|
||||
.map(|line| format!(" | {}", line))
|
||||
.collect::<Vec<String>>()
|
||||
.join("\n");
|
||||
|
|
Loading…
Reference in a new issue