Merge pull request #91 from LnL7/nix-test-ansi

fix test with ANSI escape characters
This commit is contained in:
Graham Christensen 2018-02-26 17:08:31 -05:00 committed by GitHub
commit b692a1fecc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");