mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
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é <roger.pau@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
(cherry picked from commit c6867d134e)
This commit is contained in:
1 parent
0b37231312
commit
81189d7116
1 file changed
+1
-1
@@ -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)
|
||||
|
||||