on master help sign in
Tests ~ revert to `echo` (after fixed 'windows' pager process execution)
commit71ab4a20587defb436f260a602043e9cb2a14f0a authorRoy Ivy III <rivy.dev@gmail.com> dateWed 27 May 2020, 22:30 (6 years ago) parenta2c09b4
2 files changed+8−8
tests/examples/bat.conf+1−1 tests/integration_tests.rs+7−7
tests/examples/bat.conf+1−1
@@ -2,4 +2,4 @@
22--paging=always
33
44# Output a dummy message for the integration test.
5−--pager="printf dummy-pager-from-config"
5+--pager="echo dummy-pager-from-config"
tests/integration_tests.rs+7−7
@@ -446,7 +446,7 @@ fn do_not_exit_directory() {
446446#[test]
447447fn pager_basic() {
448448 let assert = bat()
449− .env("PAGER", "printf pager-output")
449+ .env("PAGER", "echo pager-output")
450450 .arg("--paging=always")
451451 .arg("test.txt")
452452 .assert();
@@ -454,14 +454,14 @@ fn pager_basic() {
454454 println!("stdout={:#?}", stdout);
455455 assert
456456 .success()
457− .stdout("pager-output");
457+ .stdout("pager-output\n");
458458}
459459
460460#[test]
461461fn pager_overwrite() {
462462 let assert = bat()
463− .env("PAGER", "printf other-pager")
464− .env("BAT_PAGER", "printf pager-output")
463+ .env("PAGER", "echo other-pager")
464+ .env("BAT_PAGER", "echo pager-output")
465465 .arg("--paging=always")
466466 .arg("test.txt")
467467 .assert();
@@ -469,13 +469,13 @@ fn pager_overwrite() {
469469 println!("stdout={:#?}", stdout);
470470 assert
471471 .success()
472− .stdout("pager-output");
472+ .stdout("pager-output\n");
473473}
474474
475475#[test]
476476fn pager_disable() {
477477 let assert = bat()
478− .env("PAGER", "printf other-pager")
478+ .env("PAGER", "echo other-pager")
479479 .env("BAT_PAGER", "")
480480 .arg("--paging=always")
481481 .arg("test.txt")
@@ -510,7 +510,7 @@ fn config_read_arguments_from_file() {
510510 println!("stdout={:#?}", stdout);
511511 assert
512512 .success()
513− .stdout("dummy-pager-from-config");
513+ .stdout("dummy-pager-from-config\n");
514514}
515515
516516#[test]