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:
Daiderd Jordan 2018-02-26 23:00:52 +01:00
parent 69b7a315ef
commit 20a85b6fa7
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -261,6 +261,7 @@ mod tests {
let buildlog = lines let buildlog = lines
.into_iter() .into_iter()
.map(|line| line.replace("\u{1b}[0m", "")) // ANSI reset
.map(|line| format!(" | {}", line)) .map(|line| format!(" | {}", line))
.collect::<Vec<String>>() .collect::<Vec<String>>()
.join("\n"); .join("\n");