summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoy Ivy III <rivy.dev@gmail.com>2020-05-27 22:30:51 -0500
committerDavid Peter <sharkdp@users.noreply.github.com>2020-06-03 09:13:47 +0200
commit71ab4a20587defb436f260a602043e9cb2a14f0a (patch)
tree47eef13d9fabb816eefd05b7249aff233e7d1272 /tests
parenta2c09b41bc2e6a586310fd72d76ca1d14f95fbeb (diff)
Tests ~ revert to `echo` (after fixed 'windows' pager process execution)
Diffstat (limited to 'tests')
-rw-r--r--tests/examples/bat.conf2
-rw-r--r--tests/integration_tests.rs14
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/examples/bat.conf b/tests/examples/bat.conf
index 6bb92c5c..614ab40d 100644
--- a/tests/examples/bat.conf
+++ b/tests/examples/bat.conf
@@ -2,4 +2,4 @@
--paging=always
# Output a dummy message for the integration test.
---pager="printf dummy-pager-from-config"
+--pager="echo dummy-pager-from-config"
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs
index 20273af5..f10221ec 100644
--- a/tests/integration_tests.rs
+++ b/tests/integration_tests.rs
@@ -446,7 +446,7 @@ fn do_not_exit_directory() {
#[test]
fn pager_basic() {
let assert = bat()
- .env("PAGER", "printf pager-output")
+ .env("PAGER", "echo pager-output")
.arg("--paging=always")
.arg("test.txt")
.assert();
@@ -454,14 +454,14 @@ fn pager_basic() {
println!("stdout={:#?}", stdout);
assert
.success()
- .stdout("pager-output");
+ .stdout("pager-output\n");
}
#[test]
fn pager_overwrite() {
let assert = bat()
- .env("PAGER", "printf other-pager")
- .env("BAT_PAGER", "printf pager-output")
+ .env("PAGER", "echo other-pager")
+ .env("BAT_PAGER", "echo pager-output")
.arg("--paging=always")
.arg("test.txt")
.assert();
@@ -469,13 +469,13 @@ fn pager_overwrite() {
println!("stdout={:#?}", stdout);
assert
.success()
- .stdout("pager-output");
+ .stdout("pager-output\n");
}
#[test]
fn pager_disable() {
let assert = bat()
- .env("PAGER", "printf other-pager")
+ .env("PAGER", "echo other-pager")
.env("BAT_PAGER", "")
.arg("--paging=always")
.arg("test.txt")
@@ -510,7 +510,7 @@ fn config_read_arguments_from_file() {
println!("stdout={:#?}", stdout);
assert
.success()
- .stdout("dummy-pager-from-config");
+ .stdout("dummy-pager-from-config\n");
}
#[test]