bash: add an explanation why use expect to run the test

This commit is contained in:
Xi Ruoyao 2021-07-19 21:01:45 +08:00
parent 590d255947
commit d072573464
No known key found for this signature in database
GPG Key ID: D95E4716CCBB34DC

View File

@ -73,7 +73,10 @@
<screen><userinput remap="test">chown -Rv tester .</userinput></screen>
<para>Now, run the tests as the <systemitem
<para>The testsuite of the package is designed to be ran as a non-root
user, owning the terminal connected to standard input. To satisify the
requirement, spawn a new pseudoterminal using
<application>Expect</application> and run the tests as the <systemitem
class="username">tester</systemitem> user:</para>
<screen><userinput remap="test">su -s /usr/bin/expect tester &lt;&lt; EOF