mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tail --sleep-interval takes a value
This commit is contained in:
parent
8554cdf35b
commit
3678777539
2 changed files with 10 additions and 0 deletions
|
@ -117,6 +117,7 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name(options::SLEEP_INT)
|
Arg::with_name(options::SLEEP_INT)
|
||||||
.short("s")
|
.short("s")
|
||||||
|
.takes_value(true)
|
||||||
.long(options::SLEEP_INT)
|
.long(options::SLEEP_INT)
|
||||||
.help("Number or seconds to sleep between polling the file when running with -f"),
|
.help("Number or seconds to sleep between polling the file when running with -f"),
|
||||||
)
|
)
|
||||||
|
|
|
@ -343,3 +343,12 @@ fn test_negative_indexing() {
|
||||||
assert_eq!(positive_lines_index.stdout(), negative_lines_index.stdout());
|
assert_eq!(positive_lines_index.stdout(), negative_lines_index.stdout());
|
||||||
assert_eq!(positive_bytes_index.stdout(), negative_bytes_index.stdout());
|
assert_eq!(positive_bytes_index.stdout(), negative_bytes_index.stdout());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_sleep_interval() {
|
||||||
|
new_ucmd!()
|
||||||
|
.arg("-s")
|
||||||
|
.arg("10")
|
||||||
|
.arg(FOOBAR_TXT)
|
||||||
|
.succeeds();
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue