commit: a3f668d0f70f94d7c5154084703ac75355b17998 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> AuthorDate: Sun Jan 12 17:46:30 2025 +0000 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> CommitDate: Sun Jan 12 17:46:30 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3f668d0
sys-apps/dcfldd: Improve test for miscompilation Closes: https://bugs.gentoo.org/947985 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> sys-apps/dcfldd/dcfldd-1.9.2-r1.ebuild | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys-apps/dcfldd/dcfldd-1.9.2-r1.ebuild b/sys-apps/dcfldd/dcfldd-1.9.2-r1.ebuild index 9ed9f564a117..3a9a2897ec46 100644 --- a/sys-apps/dcfldd/dcfldd-1.9.2-r1.ebuild +++ b/sys-apps/dcfldd/dcfldd-1.9.2-r1.ebuild @@ -44,10 +44,9 @@ src_test() { # Smoke test for Gentoo bug #930996 # Inspired by https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114698#c0 - expected_sha256sum="$(sha256sum <<<TestInput | awk '{print $1}' \ - | tee /dev/stderr)" + expected_sha256sum="$(sha256sum <<<TestInput | awk '{print $1}')" actual_sha256sum="$(dcfldd hash=sha256 2>&1 <<<TestInput \ - | grep -F sha256 | awk '{print $3}' | tee /dev/stderr)" + | grep -F sha256 | awk '{print $3}')" [[ ${actual_sha256sum} = ${expected_sha256sum} ]] \ - || die "dcfldd did not produce the expected SHA256 sum." + || die "dcfldd produced \"${actual_sha256sum}\" instead of expected \"${expected_sha256sum}\"." }
