diff options
author | Xi Ruoyao <xry111@mengyan1223.wang> | 2021-07-19 21:01:45 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@mengyan1223.wang> | 2021-07-19 21:01:45 +0800 |
commit | d0725734644f7641a10011cf72f0e1d3d04f6f30 (patch) | |
tree | aa31790b66091456a000231ecbef7eccaf578dbc /chapter08 | |
parent | 590d255947dd121a90336e06238170368e105d75 (diff) |
bash: add an explanation why use expect to run the test
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/bash.xml | 5 |
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 << EOF |