From 7d88d57dd38aa281d8aca387dda64aa576ac8246 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 19 Jul 2021 21:29:20 +0800 Subject: 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. --- chapter08/bash.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chapter08') 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 user: su -s /usr/bin/expect tester << EOF -spawn make tests; expect eof; +set timeout -1 +spawn make tests +expect eof EOF Install the package: -- cgit v1.2.3-54-g00ecf