summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2017-08-23 17:49:20 -0400
committerAndrew Gallant <jamslam@gmail.com>2017-08-23 17:49:40 -0400
commit73c9ac4da57d817f8dc4b0d3648e91c5c837112c (patch)
tree0a2ccdacb8318fbd10d09e278cbfd88f147dfd6c
parentfe7fe74b0a9f2a389983307c783e6cbb468df2e1 (diff)
integration tests: ignore regression_428 on Windows
The test is severely constrained to the specific ANSI formatting of ripgrep in accordance with its default color scheme. The default color scheme on Windows changed, which caused the test to fail. For now, just disable the test on Windows.
-rw-r--r--tests/tests.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index ecf83640..dfb681d7 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -1090,16 +1090,19 @@ clean!(regression_405, "test", ".", |wd: WorkDir, mut cmd: Command| {
});
// See: https://github.com/BurntSushi/ripgrep/issues/428
-clean!(regression_428_color_context_path, "foo", ".", |wd: WorkDir, mut cmd: Command| {
+#[cfg(not(windows))]
+clean!(regression_428_color_context_path, "foo", ".",
+|wd: WorkDir, mut cmd: Command| {
wd.create("sherlock", "foo\nbar");
cmd.arg("-A1").arg("-H").arg("--no-heading").arg("-N")
.arg("--colors=match:none").arg("--color=always");
let lines: String = wd.stdout(&mut cmd);
- let expected = format!("\
-{colored_path}:foo
-{colored_path}-bar
-", colored_path=format!("\x1b\x5b\x6d\x1b\x5b\x33\x35\x6d{path}\x1b\x5b\x6d", path=path("sherlock")));
+ let expected = format!(
+ "{colored_path}:foo\n{colored_path}-bar\n",
+ colored_path=format!(
+ "\x1b\x5b\x6d\x1b\x5b\x33\x35\x6d{path}\x1b\x5b\x6d",
+ path=path("sherlock")));
assert_eq!(lines, expected);
});