Sylvestre Ledru
d8dae53df0
Merge pull request #3514 from cakebaker/show_error_if_blocksize_is_zero
...
df: show error if provided block size is zero
2022-05-12 08:26:24 +02:00
Daniel Hofstetter
a6b100a5ca
df: show error if provided block size is zero
2022-05-11 12:59:51 +02:00
Sylvestre Ledru
0ebd9c9391
Merge pull request #3518 from jhscheer/run_ucmd_as_root
...
test/util: improve `run_ucmd_as_root` for CICD
2022-05-11 12:57:42 +02:00
Jan Scheer
12d7d9846a
test/util: improve run_ucmd_as_root
for CICD
...
* ensure that `fn run_no_wait` is only invoked if the system running the
test has `sudo` in $path
Previously, if run inside CICD, calling `fn run_ucmd_as_root`
would provoke `fn run_no_wait` to panic because there's no `sudo`.
2022-05-10 23:41:22 +02:00
Sylvestre Ledru
2fd6ec46b7
Merge pull request #3517 from sylvestre/gnu-test-uniq
...
uniq: Disable one of the gnu test for failing too often
2022-05-10 19:31:43 +02:00
Terts Diepraam
949a79f81d
Merge pull request #3516 from sylvestre/shebang
...
Add missing \# interpreter line
2022-05-10 18:55:36 +02:00
Sylvestre Ledru
7d8b1de213
uniq: Disable one of the gnu test for failing too often
...
See: https://github.com/uutils/coreutils/issues/3509
2022-05-10 13:54:33 +02:00
Sylvestre Ledru
ece9ccdbfb
Add missing \# interpreter line
2022-05-10 13:49:52 +02:00
Jan Scheer
2f2b5348b6
Merge branch 'main' into run_ucmd_as_root
2022-05-10 12:03:32 +02:00
jfinkels
ae580cd54a
Merge pull request #3482 from cakebaker/handle_posixly_correct
...
df: use blocksize of 512 if POSIXLY_CORRECT is set
2022-05-09 19:43:58 -04:00
Sylvestre Ledru
779eca4983
Merge pull request #3319 from g-k/2884-time-0.3
...
update time crate to 0.3
2022-05-08 23:13:35 +02:00
Sylvestre Ledru
f65d72e334
also support for tests/touch/relative.sh
2022-05-08 21:52:12 +02:00
Sylvestre Ledru
d5569847bd
also support for tests/touch/no-rights.sh format
2022-05-08 21:50:12 +02:00
Sylvestre Ledru
087d4b14fc
Do not use the Rust/touch for tests/ls/abmon-align.sh
2022-05-08 21:27:08 +02:00
Daniel Hofstetter
f668b69a2c
df: use blocksize of 512 if POSIXLY_CORRECT is set
2022-05-08 14:46:31 +02:00
Sylvestre Ledru
56264ebece
Merge branch 'main' into 2884-time-0.3
2022-05-07 20:57:14 +02:00
Sylvestre Ledru
e5d973718c
Merge pull request #3502 from sylvestre/show-error-gnu
...
fix the GNU error detection
2022-05-07 20:57:02 +02:00
Terts Diepraam
275f938f26
Merge pull request #3499 from cakebaker/fix_size_header_for_multiples_of_1000_and_1024
...
df: fix "Size" header for multiples of 1000 & 1024
2022-05-07 11:44:35 +02:00
Sylvestre Ledru
a640ed6489
fix the GNU error detection
2022-05-07 09:52:03 +02:00
Sylvestre Ledru
39520a84ab
fix the GNU error detection
2022-05-06 23:54:12 +02:00
Daniel Hofstetter
5a3933a882
df: fix "Size" header for multiples of 1000 & 1024
2022-05-06 15:37:52 +02:00
Terts Diepraam
122c7d6d5b
Merge pull request #3490 from cakebaker/fix_help_output
...
df: set names for arg values & add missing space
2022-05-06 11:38:34 +02:00
Sylvestre Ledru
06ef89b3d8
touch: improve the -d option support of other dates
2022-05-06 09:23:46 +02:00
Sylvestre Ledru
6cea7753e8
Merge pull request #3475 from uutils/dependabot/cargo/num-traits-0.2.15
...
build(deps): bump num-traits from 0.2.14 to 0.2.15
2022-05-06 08:44:42 +02:00
Sylvestre Ledru
a60f6dc67e
Update num-traits for real
2022-05-06 08:38:10 +02:00
dependabot[bot]
97c59d7857
build(deps): bump num-traits from 0.2.14 to 0.2.15
...
Bumps [num-traits](https://github.com/rust-num/num-traits ) from 0.2.14 to 0.2.15.
- [Release notes](https://github.com/rust-num/num-traits/releases )
- [Changelog](https://github.com/rust-num/num-traits/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-traits/compare/num-traits-0.2.14...num-traits-0.2.15 )
---
updated-dependencies:
- dependency-name: num-traits
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-06 08:38:10 +02:00
Sylvestre Ledru
18f8e168ff
Merge pull request #3488 from turrisxyz/feat/dependabot-github-actions
...
chore: Included githubactions in the dependabot config
2022-05-06 08:37:45 +02:00
Sylvestre Ledru
8e8203ebdb
Merge pull request #3487 from jfinkels/mktemp-simpler-error
...
mktemp: return MkTempError from parse_template()
2022-05-06 08:35:54 +02:00
Sylvestre Ledru
9ea8531878
Merge pull request #2692 from jhscheer/run_ucmd_as_root
...
tests/util: add a convenience wrapper to run a ucmd with root permissions
2022-05-06 08:35:33 +02:00
Daniel Hofstetter
be1f41e24c
df: set names for arg values & add missing space
2022-05-06 08:02:22 +02:00
naveensrinivasan
608b1afde5
chore: Included githubactions in the dependabot config
...
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.
Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot
GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
2022-05-05 19:38:10 -05:00
Terts Diepraam
a711597619
Merge pull request #3481 from cakebaker/refactor_tests_in_table_rs
...
df: implement Default for Row for unit tests
2022-05-06 00:15:33 +02:00
Jeffrey Finkelstein
e691330f02
mktemp: return MkTempError from parse_template()
...
Change the return type of the `parse_template()` helper function in
the `mktemp` program so that it returns `Result<..., MkTempError>`
instead of `UResult<...>`. This separates the lower level helper
function from the higher level `UResult` abstraction and will make it
easier to refactor this code in future commits.
2022-05-05 17:58:37 -04:00
Sylvestre Ledru
65d0f5ba9f
to_local: manage the error
2022-05-05 22:56:11 +02:00
Sylvestre Ledru
e70b99dad0
touch: add support of -d '1970-01-01 18:43:33.023456789'
2022-05-05 22:56:10 +02:00
Sylvestre Ledru
309347e218
Merge pull request #3478 from uutils/dependabot/cargo/xattr-0.2.3
...
build(deps): bump xattr from 0.2.2 to 0.2.3
2022-05-05 22:37:05 +02:00
Sylvestre Ledru
90de8b90d4
Merge pull request #3486 from jhscheer/fix_stat_redirect
...
test_stat: add tests for issues with stdin
2022-05-05 21:47:28 +02:00
Jan Scheer
f5ffa94129
test_stat: add tests for issues with stdin
...
* add tests for: https://github.com/uutils/coreutils/issues/3485
* add test for: https://github.com/uutils/coreutils/pull/3280
2022-05-05 20:39:50 +02:00
Sylvestre Ledru
d4a9f0bec1
Merge pull request #3484 from cakebaker/remove_duplicate_word_in_docs
...
docs: remove duplicate "at", add missing newline
2022-05-05 14:46:00 +02:00
Daniel Hofstetter
24f78ddb9e
docs: remove duplicate "at", add missing newline
2022-05-05 13:55:38 +02:00
Terts Diepraam
6e7abb3320
Merge pull request #3430 from cakebaker/human_readable
...
df: extract HumanReadable from BlockSize
2022-05-05 12:43:59 +02:00
Sylvestre Ledru
75ea1f1fc3
Merge pull request #3457 from tertsdiepraam/clap-exit-code
...
`clap` exit code
2022-05-05 11:44:24 +02:00
Daniel Hofstetter
00a3ec2d1f
df: implement Default for Row for unit tests
2022-05-05 09:37:40 +02:00
Daniel Hofstetter
46e029f34c
df: refactor HumanReadable handling
...
The refactoring consists of three parts:
1) Introduction of SizeFormat & HumanReadable enums
2) Addition of a size_format field to the options struct
3) Movement of header logic from BlockSize to Header
2022-05-05 09:37:17 +02:00
Sylvestre Ledru
f6b9d36891
Merge pull request #3453 from turrisxyz/setup-permissions
...
chore: Set permissions for GitHub actions
2022-05-05 08:00:20 +02:00
Sylvestre Ledru
e06fe3c8f8
Merge pull request #3480 from cakebaker/set_min_width_for_used_column
...
df: set min width of "Used" column to 5
2022-05-05 07:59:45 +02:00
Sylvestre Ledru
84f24aed8f
Merge pull request #3476 from ackerleytng/main
...
du: use USimpleError instead of set_exit_code
2022-05-05 07:59:20 +02:00
Sylvestre Ledru
cbe39b4154
Merge pull request #3456 from cakebaker/ticket_3193
...
df: fix "Size" column header
2022-05-05 07:58:48 +02:00
Terts Diepraam
c7b7f19559
cp: use new clap error mechanism
2022-05-04 21:32:14 +02:00
Terts Diepraam
2409726258
base: set exit code to 1 for clap errors
2022-05-04 21:32:14 +02:00