Tweak additions and deletion of tester user.

Explain test filures in bash.



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11868 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Bruce Dubbs 2020-05-29 22:05:38 +00:00
parent 18fa90938b
commit 1f5a5864d2
3 changed files with 10 additions and 10 deletions

View File

@ -81,15 +81,13 @@
class="username">tester</systemitem> user:</para> class="username">tester</systemitem> user:</para>
<screen><userinput remap="test">su tester -c "PATH=$PATH make tests"</userinput></screen> <screen><userinput remap="test">su tester -c "PATH=$PATH make tests"</userinput></screen>
<!--
<para>The <command>su</command> command above is slightly different from
other places in the book. The
reason is that the <option>-c</option> option runs the command without
a controlling terminal, while the bash test suite needs one.</para>
-->
<para>The <systemitem class="username">tester</systemitem> <para>The <systemitem class="username">tester</systemitem>
user does not have enough permissions for all the tests to pass. This shows user does not have enough permissions for all the tests to pass. This shows
up in some <quote>diff</quote> output in four test results.</para> up in some <quote>diff</quote> output in four test results. Portions of the
run-execscript, run-lastpipe, run-read, and run-test programs
are known to fail in the LFS chroot environment, but pass if the tests
are run in a full system.</para>
<para>Install the package and move the main executable to <para>Install the package and move the main executable to
<filename class='directory'>/bin</filename>:</para> <filename class='directory'>/bin</filename>:</para>

View File

@ -345,8 +345,9 @@ EOF</userinput></screen>
<para>Some tests later in the chapter need a regular user. We add this <para>Some tests later in the chapter need a regular user. We add this
user here and delete this account at the end of the chapter.</para> user here and delete this account at the end of the chapter.</para>
<screen><userinput>echo "tester:x:101:101::/tmp:/bin/bash" &gt;&gt; /etc/passwd <screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" &gt;&gt; /etc/passwd
echo "tester:x:101:dummy" &gt;&gt; /etc/group</userinput></screen> echo "tester:x:101:dummy" &gt;&gt; /etc/group
install -o tester -d /home/tester</userinput></screen>
<para>To remove the <quote>I have no name!</quote> prompt, start a new <para>To remove the <quote>I have no name!</quote> prompt, start a new
shell. Since a full Glibc was installed in <xref shell. Since a full Glibc was installed in <xref

View File

@ -73,5 +73,6 @@ rm -f /usr/lib/libz.a</userinput></screen>
<para>Finally, remove the temporary 'tester' usr account created at the <para>Finally, remove the temporary 'tester' usr account created at the
beginning of this chapter.</para> beginning of this chapter.</para>
<screen><userinput>sed -i '/tester/d' /etc/passwd /etc/group</userinput></screen> <screen><userinput>sed -i '/tester/d' /etc/passwd /etc/group
rm -rf /home/tester</userinput></screen>
</sect1> </sect1>