diff options
author | Xi Ruoyao <xry111@mengyan1223.wang> | 2021-07-19 21:29:20 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@mengyan1223.wang> | 2021-07-19 21:29:20 +0800 |
commit | 7d88d57dd38aa281d8aca387dda64aa576ac8246 (patch) | |
tree | 7f6bd810d37520de482f0836303223adc97ac533 | |
parent | 2d30be476b83ca5370c2a46d685eff1ed7733141 (diff) |
bash: disable timeout to prevent Expect from exiting early
The default timeout is only 10 seconds, where the bash tests won't
complete on most systems. Then expect will exit early, with bash tests
running in background. We won't like this.
-rw-r--r-- | chapter08/bash.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chapter08/bash.xml b/chapter08/bash.xml index c2a5e807b..275a63e68 100644 --- a/chapter08/bash.xml +++ b/chapter08/bash.xml @@ -80,7 +80,9 @@ class="username">tester</systemitem> user:</para> <screen><userinput remap="test">su -s /usr/bin/expect tester << EOF -spawn make tests; expect eof; +set timeout -1 +spawn make tests +expect eof EOF</userinput></screen> <para>Install the package:</para> |