From 2001f5cd7ef8ff791cedfe61974e9ea343b9bd47 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 2 Mar 2024 00:03:28 +0800 Subject: [PATCH] coreutils: Redirect stdin for test suite to prevent two failures The tests affected are test-getlogin and test/tty/tty.sh. We need an errata for 12.1. --- chapter08/coreutils.xml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/chapter08/coreutils.xml b/chapter08/coreutils.xml index 94c276360..68ff3b356 100644 --- a/chapter08/coreutils.xml +++ b/chapter08/coreutils.xml @@ -123,20 +123,18 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \ chown -R tester . - Now run the tests: + + Now run the tests (using /dev/null for the + standard input, or two tests may be broken if building LFS in a + graphical terminal or a session in SSH or GNU Screen etc. because the + standard input is connected to a PTY from host distro, and the device + node for such a PTY cannot be accessed from the LFS chroot + environment): -su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check" - - +su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check" < /dev/null Remove the temporary group: