Changes in / [908a3c3:14e0b47]


Ignore:
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • appendices/dependencies.xml

    r908a3c3 r14e0b47  
    219219        <segtitle>&testsuites;</segtitle>
    220220        <seglistitem>
    221           <seg>Expect and Shadow</seg>
     221          <seg>Shadow</seg>
    222222        </seglistitem>
    223223      </segmentedlist>
  • chapter07/createfiles.xml

    r908a3c3 r14e0b47  
    176176  chapter.</para>
    177177
    178 <screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" &gt;&gt; /etc/passwd
     178<screen><userinput>echo "tester:x:$(ls -n $(tty) | cut -d" " -f3):101::/home/tester:/bin/bash" &gt;&gt; /etc/passwd
    179179echo "tester:x:101:" &gt;&gt; /etc/group
    180180install -o tester -d /home/tester</userinput></screen>
  • chapter08/bash.xml

    r908a3c3 r14e0b47  
    7474<screen><userinput remap="test">chown -Rv tester .</userinput></screen>
    7575
    76     <para>The testsuite of the package is designed to be ran as a non-root
    77     user, owning the terminal connected to standard input.  To satisify the
    78     requirement, spawn a new pseudoterminal using
    79     <application>Expect</application> and run the tests as the <systemitem
     76    <para>Now, run the tests as the <systemitem
    8077    class="username">tester</systemitem> user:</para>
    8178
    82 <screen><userinput remap="test">su -s /usr/bin/expect tester &lt;&lt; EOF
    83 set timeout -1
    84 spawn make tests
    85 expect eof
    86 lassign [wait] _ _ _ value
    87 exit $value
     79<screen><userinput remap="test">su tester &lt;&lt; EOF
     80PATH=$PATH make tests &lt; $(tty)
    8881EOF</userinput></screen>
    8982
Note: See TracChangeset for help on using the changeset viewer.