From: Roger Pau Monne Date: Mon, 17 Mar 2025 09:31:07 +0000 (+0100) Subject: automation/console.exp: do not assume expect is always at /usr/bin/ X-Git-Tag: RELEASE-4.19.2~6 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bbca8438629519497bacc7297cf52e67bb114748;p=xen.git automation/console.exp: do not assume expect is always at /usr/bin/ Instead use env to find the location of expect. Additionally do not use the -f flag, as it's only meaningful when passing arguments on the command line, which we never do for console.exp. From the expect 5.45.4 man page: > The -f flag prefaces a file from which to read commands from. The flag > itself is optional as it is only useful when using the #! notation (see > above), so that other arguments may be supplied on the command line. Signed-off-by: Roger Pau Monné Reviewed-by: Stefano Stabellini --- diff --git a/automation/scripts/console.exp b/automation/scripts/console.exp index 310543c33e..31ce97b91b 100755 --- a/automation/scripts/console.exp +++ b/automation/scripts/console.exp @@ -1,4 +1,4 @@ -#!/usr/bin/expect -f +#!/usr/bin/env expect if {[info exists env(TEST_TIMEOUT_OVERRIDE)]} { set timeout $env(TEST_TIMEOUT_OVERRIDE)