aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2021-07-19 21:01:45 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2021-07-19 21:01:45 +0800
commitd0725734644f7641a10011cf72f0e1d3d04f6f30 (patch)
treeaa31790b66091456a000231ecbef7eccaf578dbc /chapter08
parent590d255947dd121a90336e06238170368e105d75 (diff)
bash: add an explanation why use expect to run the test
Diffstat (limited to 'chapter08')
-rw-r--r--chapter08/bash.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/chapter08/bash.xml b/chapter08/bash.xml
index 99ee2e3f4..7381c9e87 100644
--- a/chapter08/bash.xml
+++ b/chapter08/bash.xml
@@ -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