diff options
Diffstat (limited to 'chapter06/bash.xml')
-rw-r--r-- | chapter06/bash.xml | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/chapter06/bash.xml b/chapter06/bash.xml index 0c7f7f062..03a3e0614 100644 --- a/chapter06/bash.xml +++ b/chapter06/bash.xml @@ -73,23 +73,21 @@ <para>Skip down to <quote>Install the package</quote> if not running the test suite.</para> - <para>To prepare the tests, ensure that the <systemitem class="username">nobody</systemitem> user can write to the sources tree:</para> + <para>To prepare the tests, ensure that the <systemitem class="username">tester</systemitem> user can write to the sources tree:</para> -<screen><userinput remap="test">chown -Rv nobody .</userinput></screen> +<screen><userinput remap="test">chown -Rv tester .</userinput></screen> <para>Now, run the tests as the <systemitem - class="username">nobody</systemitem> user:</para> - -<screen><userinput remap="test">su nobody -s /bin/bash << EOF -PATH=$PATH HOME=/home make tests -EOF</userinput></screen> + class="username">tester</systemitem> user:</para> +<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>Nevertheless, the <systemitem class="username">nobody</systemitem> +--> + <para>The <systemitem class="username">tester</systemitem> 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> |