mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-31 03:11:57 +00:00
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.
This commit is contained in:
parent
c2d820a770
commit
2001f5cd7e
@ -123,20 +123,18 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \
|
||||
|
||||
<screen><userinput remap="test">chown -R tester . </userinput></screen>
|
||||
|
||||
<para>Now run the tests:</para>
|
||||
<!-- To editors: in jhalfs the standard input is always piped to "make"
|
||||
so the test failures are not reproducible in jhalfs even if
|
||||
running the build in a PTY. Don't use jhalfs to test if we can
|
||||
remove < /dev/null. -->
|
||||
<para>Now run the tests (using <filename>/dev/null</filename> 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):</para>
|
||||
|
||||
<screen><userinput remap="test">su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
|
||||
|
||||
<!-- Sometimes skipped, but if not it may fail.
|
||||
Please DO NOT remove or comment out this unless we can fully
|
||||
understand it!
|
||||
<para>The test-getlogin test may fail in the LFS chroot environment.</para>
|
||||
20240226: Commented out as it seems the upstream has root-caused and
|
||||
fixed the issue. I've checked the fix is in Coreutils 9.4 release
|
||||
tarball:
|
||||
|
||||
https://lists.gnu.org/archive/html/bug-gnulib/2022-06/msg00079.html
|
||||
-->
|
||||
<screen><userinput remap="test">su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check" < /dev/null</userinput></screen>
|
||||
|
||||
<para>Remove the temporary group:</para>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user