Terts Diepraam
bdd6f56ae4
Merge pull request #4231 from Joining7943/add-timeout-in-tests
...
`tests/common/util`: Add possibility to set timeout for UCommand and UChild. Add `rstest` with timeout macro to dev dependencies
2022-12-23 01:12:57 +01:00
TechHara
a549589682
fix clippy warnings
2022-12-21 08:01:31 -05:00
TechHara
f2a7175144
enum Delimiter; misc changes
2022-12-20 20:37:31 -05:00
Daniel Hofstetter
a0522f5cbd
clippy: fix some "unnested or-patterns" warnings
2022-12-20 16:07:37 +01:00
TechHara
c29839f4f9
Merge branch 'main' into whitespace
2022-12-18 09:07:03 -05:00
TechHara
df8ce0c999
ignore multispace cspell
2022-12-18 09:06:47 -05:00
Terts Diepraam
03710a180e
Merge pull request #4241 from sylvestre/android-test
...
Ignore some cp tests on android
2022-12-18 00:50:17 +01:00
Joining7943
09c04d9f3f
tests: Set timeout for tests which would fail with the default timeout in test_factor, test_sort
2022-12-17 21:55:01 +01:00
Joining7943
1d7447d42e
tests/util: Add setting timeout for UChild::kill and run and wait methods in UCommand and UChild.
...
Additional notes:
* Set default timeout to 30s
* Fix UChild::kill to always fail on timeout if zero
2022-12-17 21:53:39 +01:00
Joining7943
83725d1876
tests: Add rstest crate with timeout macro, parameterized tests etc. to development dependencies
2022-12-17 21:41:35 +01:00
Sylvestre Ledru
8489e9b69c
Ignore some cp tests on android
...
Closes : #4233
2022-12-17 16:54:23 +01:00
Sylvestre Ledru
4f90c680c8
Merge pull request #4238 from Joining7943/fix-cargo-clippy-doc-warnings
...
cargo: Fix cargo clippy doc warnings
2022-12-17 16:51:30 +01:00
Joining7943
ca0414d867
clippy: Allow some unnecessary casts
2022-12-16 18:37:50 +01:00
Joining7943
c94a039358
clippy and doc: Fix warnings, mostly needless conversions. Fix documentation warning.
2022-12-16 18:36:27 +01:00
TechHara
bae78e62e0
Merge branch 'main' into whitespace
2022-12-15 22:23:03 -05:00
Sylvestre Ledru
d7e690496b
Merge pull request #4234 from ctsk/mv-progress-extension-doc
...
docs: document progress flag for mv extension
2022-12-14 18:12:13 +01:00
ctsk
a1fc7432b8
docs: document progress flag for mv extension
2022-12-14 17:57:41 +01:00
Sylvestre Ledru
c5728a61b4
fix some clippy warnings ( #4229 )
...
* fix some clippy warnings
* Fix the last two
2022-12-14 15:42:07 +01:00
Terts Diepraam
e4bed1c087
Merge pull request #4135 from Joining7943/refactor-tail-check-warnings
...
`tail`: Refactor handling of warnings and early exits
2022-12-14 13:21:54 +01:00
TechHara
4e2cfdb8ce
add more comments
2022-12-14 04:07:12 -05:00
TechHara
76f818da05
fix whitespace
2022-12-13 21:02:16 -05:00
TechHara
27dfe63f4c
add comments on the function logic
2022-12-13 20:57:46 -05:00
TechHara
9798ae7987
fix clippy complaint
2022-12-13 20:34:01 -05:00
TechHara
db829321fc
remove clippy complex
2022-12-13 11:51:05 -05:00
TechHara
5867a47f21
fix clippy complaint
2022-12-13 11:49:26 -05:00
TechHara
11e64958d6
add test cases to cover cut -w failing options
2022-12-13 11:43:20 -05:00
TechHara
17c48e13f4
specify that cut -w is freebsd extension
2022-12-13 11:30:58 -05:00
TechHara
866a6d25c8
fix clippy complaint
2022-12-13 11:20:34 -05:00
Joining7943
b339f6d80c
tests/tail: Add all additional tests written during refactoring tail from tip of refactoring branch
...
Other changes summmary:
* Use module level imports instead of fully qualified imports where appropriate
* Fix intermittent failing test_positive_zero_bytes because of broken pipe
* Cleanup old disabled test for warning of following indefinitely
2022-12-13 16:16:14 +01:00
Joining7943
93654d4504
tail: Add documentation for Settings::check_warnings and Settings::verify
2022-12-13 16:16:14 +01:00
Joining7943
2dc8a1b55e
tail: Add gnu's warning when following stdin is ineffective. If no pid support set to 0 in Observer.
2022-12-13 16:16:14 +01:00
Joining7943
d57545d09c
tail: Refactor: Handle warnings and early exits in one place. Remove InputService ...
...
Other changes summary:
* Cleanup imports
* Remove stdin_is_pipe_of_fifo function
* Rename WatcherService to Observer
2022-12-13 16:16:08 +01:00
Sylvestre Ledru
ce8c53dbad
Merge pull request #4235 from cakebaker/build_rs_remove_println
...
build.rs: remove two comments
2022-12-13 15:32:08 +01:00
Daniel Hofstetter
3d498432fa
build.rs: remove two comments
2022-12-13 15:05:05 +01:00
Terts Diepraam
69caa45b01
Merge pull request #4219 from cakebaker/match_wildcard_for_single_variant
...
chore: fix wildcards that match single variant
2022-12-13 11:57:52 +01:00
Christian
00bbe24639
mv: add progress bar ( #4220 )
...
* mv: add progress bar
Similarly to `cp`, adds `-g` and `--progress` flags to enable a progress
bar via indicatif.
2022-12-13 11:46:54 +01:00
Terts Diepraam
7555527d07
Merge pull request #4225 from Joining7943/4223-fix-intermittent-test-failures
...
tests/util: Fix #4223 : intermittent failing uchild tests
2022-12-13 11:40:11 +01:00
TechHara
188d84b154
minimize unnecessary code change
2022-12-13 01:14:14 -05:00
TechHara
f334ae3149
use match guard to minimize
2022-12-13 01:10:48 -05:00
TechHara
50c8bd4c6b
fix
2022-12-13 00:48:17 -05:00
TechHara
21cf0b41ab
add clippy
2022-12-13 00:11:01 -05:00
TechHara
1cc3f331e7
format
2022-12-12 22:29:31 -05:00
TechHara
6516519af3
Merge branch 'main' into whitespace
2022-12-12 22:07:05 -05:00
Sylvestre Ledru
f9c0ca4383
Merge pull request #4184 from jfinkels/cp-verbose
...
cp: correct --verbose --parents output for both files and directories
2022-12-12 21:31:15 +01:00
Sylvestre Ledru
c78e077ff2
Merge pull request #4194 from jfinkels/dd-single-byte-written
...
dd: correct progress line if 1 byte written
2022-12-12 21:30:10 +01:00
TechHara
f6a0abaee3
add whitespace delimiter option
2022-12-12 12:00:57 -05:00
Joining7943
7ef9504952
tests/util: Fix intermittent failing uchild tests on macos. The ci can be slow, so increase delay.
...
Closes #4223
2022-12-12 12:52:10 +01:00
Terts Diepraam
01153a701f
Merge pull request #4222 from sylvestre/toybox
...
Run the toybox testsuite
2022-12-10 11:04:35 +01:00
Terts Diepraam
ae044d4800
Merge pull request #4221 from ctsk/cp-init-progress-bar
...
Tick after creating progress bar to draw it
2022-12-07 19:56:57 +01:00
Terts Diepraam
39bbcdd180
Merge pull request #4217 from sylvestre/busybox4
...
busybox: replicate the same output as GNU
2022-12-07 19:53:38 +01:00