yes, coreutils: backport(enable) 2 GnuTests (#11480)

This commit is contained in:
oech3
2026-03-25 16:24:32 +09:00
committed by GitHub
parent e0f03181df
commit 572f3a2416
5 changed files with 15 additions and 8 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ name: GnuTests
# spell-checker:ignore (abbrev/names) CodeCov gnulib GnuTests Swatinem
# spell-checker:ignore (jargon) submodules devel
# spell-checker:ignore (libs/utils) chksum dpkg getenforce getlimits gperf lcov libexpect limactl pyinotify setenforce shopt valgrind libattr libcap taiki-e zstd cpio
# spell-checker:ignore (libs/utils) chksum dpkg getenforce gperf lcov libexpect limactl pyinotify setenforce shopt valgrind libattr libcap taiki-e zstd cpio
# spell-checker:ignore (options) Ccodegen Coverflow Cpanic Zpanic
# spell-checker:ignore (people) Dawid Dziurla * dawidd dtolnay
# spell-checker:ignore (vars) FILESET SUBDIRS XPASS
+2
View File
@@ -138,6 +138,7 @@ EEXIST
EINVAL
ENODATA
ENOENT
ENOSPC
ENOSYS
ENOTEMPTY
EOPNOTSUPP
@@ -363,6 +364,7 @@ uutils
getcwd
# * other
getlimits
weblate
algs
wasm
+2 -2
View File
@@ -9,7 +9,7 @@ use clap::{Arg, ArgAction, Command, builder::ValueParser};
use std::error::Error;
use std::ffi::OsString;
use std::io::{self, Write};
use uucore::error::{UResult, USimpleError};
use uucore::error::{UResult, USimpleError, strip_errno};
use uucore::format_usage;
use uucore::translate;
@@ -33,7 +33,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
Err(err) if err.kind() == io::ErrorKind::BrokenPipe => Ok(()),
Err(err) => Err(USimpleError::new(
1,
translate!("yes-error-standard-output", "error" => err),
translate!("yes-error-standard-output", "error" => strip_errno(&err)),
)),
}
}
+1 -1
View File
@@ -2,7 +2,7 @@
# `build-gnu.bash` ~ builds GNU coreutils (from supplied sources)
#
# spell-checker:ignore (paths) abmon deref discrim eacces getlimits getopt ginstall inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW
# spell-checker:ignore (paths) abmon deref discrim eacces getopt ginstall inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW
# spell-checker:ignore baddecode submodules xstrtol distros ; (vars/env) SRCDIR vdir rcexp xpart dired OSTYPE ; (utils) greadlink gsed multihardlink texinfo CARGOFLAGS
# spell-checker:ignore openat TOCTOU CFLAGS tmpfs gnproc
+9 -4
View File
@@ -4,7 +4,12 @@ repo=https://github.com/coreutils/coreutils
curl -L "${repo}/releases/download/v${ver}/coreutils-${ver}.tar.xz" | tar --strip-components=1 -xJf -
# TODO stop backporting tests from master at GNU coreutils > $ver
# backport = ()
# for f in ${backport[@]}
# do curl -L ${repo}/raw/refs/heads/master/tests/$f > tests/$f
# done
backport=(
misc/coreutils.sh # enable test
misc/yes.sh # zero-copy
)
for f in "${backport[@]}"
do curl -L ${repo}/raw/refs/heads/master/tests/$f > tests/$f
done
# adjust for getlimits > $ver
sed -i.b "s/\$ENOSPC/No space left on device/" tests/misc/yes.sh