From 71ab4a20587defb436f260a602043e9cb2a14f0a Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Wed, 27 May 2020 22:30:51 -0500 Subject: [PATCH] Tests ~ revert to `echo` (after fixed 'windows' pager process execution) --- tests/examples/bat.conf | 2 +- tests/integration_tests.rs | 14 +++++++------- 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]