numfmt: add --invalid option
Implements the --invalid option from issue https://github.com/uutils/coreutils/issues/1280.
Not sure what's causing these failures, it's all passing locally and the failing components are not numfmt :)
Yeah the GNU tests are a bit flaky. No need to worry about it if it's not concerning the util you changed :)
Probably done now, the remaining test failure is not related to this PR :)
I'd forgotten about this PR, I'll have a look at what's causing the failures :)
@sylvestre @tertsdiepraam CI tests are passing again, except for the android thing which doesn't look to be related to this PR :)
The GNU tests related to --invalid are still failing, but they're now failing due to the error message provided not matching instead of the exit code not matching, so that's some kind of improvement. Fixing those error messages (e.g. ! numfmt: invalid suffix in input '4MQ': 'Q' vs ! numfmt: invalid suffix in input: '4MQ') would fix something like 20% of the remaining failures in
numfmt.pl. I might look into those failures soon, but in a separate PR.
GNU testsuite comparison:
Skipping an intermittent issue tests/tail-2/inotify-dir-recreate
GNU testsuite comparison:
Congrats! The gnu test tests/ls/selinux-segfault is no longer failing!
Skipping an intermittent issue tests/tail-2/inotify-dir-recreate
Thanks for your PR :)