mirror of
https://github.com/sharkdp/bat
synced 2024-11-16 21:25:56 +00:00
Tests ~ revert to echo
(after fixed 'windows' pager process execution)
This commit is contained in:
parent
a2c09b41bc
commit
71ab4a2058
2
tests/examples/bat.conf
vendored
2
tests/examples/bat.conf
vendored
@ -2,4 +2,4 @@
|
|||||||
--paging=always
|
--paging=always
|
||||||
|
|
||||||
# Output a dummy message for the integration test.
|
# Output a dummy message for the integration test.
|
||||||
--pager="printf dummy-pager-from-config"
|
--pager="echo dummy-pager-from-config"
|
||||||
|
@ -446,7 +446,7 @@ fn do_not_exit_directory() {
|
|||||||
#[test]
|
#[test]
|
||||||
fn pager_basic() {
|
fn pager_basic() {
|
||||||
let assert = bat()
|
let assert = bat()
|
||||||
.env("PAGER", "printf pager-output")
|
.env("PAGER", "echo pager-output")
|
||||||
.arg("--paging=always")
|
.arg("--paging=always")
|
||||||
.arg("test.txt")
|
.arg("test.txt")
|
||||||
.assert();
|
.assert();
|
||||||
@ -454,14 +454,14 @@ fn pager_basic() {
|
|||||||
println!("stdout={:#?}", stdout);
|
println!("stdout={:#?}", stdout);
|
||||||
assert
|
assert
|
||||||
.success()
|
.success()
|
||||||
.stdout("pager-output");
|
.stdout("pager-output\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn pager_overwrite() {
|
fn pager_overwrite() {
|
||||||
let assert = bat()
|
let assert = bat()
|
||||||
.env("PAGER", "printf other-pager")
|
.env("PAGER", "echo other-pager")
|
||||||
.env("BAT_PAGER", "printf pager-output")
|
.env("BAT_PAGER", "echo pager-output")
|
||||||
.arg("--paging=always")
|
.arg("--paging=always")
|
||||||
.arg("test.txt")
|
.arg("test.txt")
|
||||||
.assert();
|
.assert();
|
||||||
@ -469,13 +469,13 @@ fn pager_overwrite() {
|
|||||||
println!("stdout={:#?}", stdout);
|
println!("stdout={:#?}", stdout);
|
||||||
assert
|
assert
|
||||||
.success()
|
.success()
|
||||||
.stdout("pager-output");
|
.stdout("pager-output\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn pager_disable() {
|
fn pager_disable() {
|
||||||
let assert = bat()
|
let assert = bat()
|
||||||
.env("PAGER", "printf other-pager")
|
.env("PAGER", "echo other-pager")
|
||||||
.env("BAT_PAGER", "")
|
.env("BAT_PAGER", "")
|
||||||
.arg("--paging=always")
|
.arg("--paging=always")
|
||||||
.arg("test.txt")
|
.arg("test.txt")
|
||||||
@ -510,7 +510,7 @@ fn config_read_arguments_from_file() {
|
|||||||
println!("stdout={:#?}", stdout);
|
println!("stdout={:#?}", stdout);
|
||||||
assert
|
assert
|
||||||
.success()
|
.success()
|
||||||
.stdout("dummy-pager-from-config");
|
.stdout("dummy-pager-from-config\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user