on master help sign in
Tests ~ revert to `echo` (after fixed 'windows' pager process execution)
71ab4a2Roy Ivy III
tests/examples/bat.conf+1−1
@@ -2,4 +2,4 @@
2--paging=always
2--paging=always
3
3
4# Output a dummy message for the integration test.
4# 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() {
446#[test]
446#[test]
447fn pager_basic() {
447fn pager_basic() {
448 let assert = bat()
448 let assert = bat()
449− .env("PAGER", "printf pager-output")
449+ .env("PAGER", "echo pager-output")
450 .arg("--paging=always")
450 .arg("--paging=always")
451 .arg("test.txt")
451 .arg("test.txt")
452 .assert();
452 .assert();
@@ -454,14 +454,14 @@ fn pager_basic() {
454 println!("stdout={:#?}", stdout);
454 println!("stdout={:#?}", stdout);
455 assert
455 assert
456 .success()
456 .success()
457− .stdout("pager-output");
457+ .stdout("pager-output\n");
458}
458}
459
459
460#[test]
460#[test]
461fn pager_overwrite() {
461fn pager_overwrite() {
462 let assert = bat()
462 let assert = bat()
463− .env("PAGER", "printf other-pager")
463+ .env("PAGER", "echo other-pager")
464− .env("BAT_PAGER", "printf pager-output")
464+ .env("BAT_PAGER", "echo pager-output")
465 .arg("--paging=always")
465 .arg("--paging=always")
466 .arg("test.txt")
466 .arg("test.txt")
467 .assert();
467 .assert();
@@ -469,13 +469,13 @@ fn pager_overwrite() {
469 println!("stdout={:#?}", stdout);
469 println!("stdout={:#?}", stdout);
470 assert
470 assert
471 .success()
471 .success()
472− .stdout("pager-output");
472+ .stdout("pager-output\n");
473}
473}
474
474
475#[test]
475#[test]
476fn pager_disable() {
476fn pager_disable() {
477 let assert = bat()
477 let assert = bat()
478− .env("PAGER", "printf other-pager")
478+ .env("PAGER", "echo other-pager")
479 .env("BAT_PAGER", "")
479 .env("BAT_PAGER", "")
480 .arg("--paging=always")
480 .arg("--paging=always")
481 .arg("test.txt")
481 .arg("test.txt")
@@ -510,7 +510,7 @@ fn config_read_arguments_from_file() {
510 println!("stdout={:#?}", stdout);
510 println!("stdout={:#?}", stdout);
511 assert
511 assert
512 .success()
512 .success()
513− .stdout("dummy-pager-from-config");
513+ .stdout("dummy-pager-from-config\n");
514}
514}
515
515
516#[test]
516#[test]