forked from the-distro/ofborg
Merge pull request #91 from LnL7/nix-test-ansi
fix test with ANSI escape characters
This commit is contained in:
commit
b692a1fecc
|
@ -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