From d0725734644f7641a10011cf72f0e1d3d04f6f30 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 19 Jul 2021 21:01:45 +0800 Subject: bash: add an explanation why use expect to run the test --- chapter08/bash.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chapter08/bash.xml') 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 @@ chown -Rv tester . - Now, run the tests as the 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 + Expect and run the tests as the tester user: su -s /usr/bin/expect tester << EOF -- cgit v1.2.3-54-g00ecf