mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 09:49:35 +02:00
scripts/qemuimage-testlib: Output a slightly better error if expect is missing
(From OE-Core rev: bfbbb420c0a6b315f73d3d5e463a518098ca6ef0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -96,6 +96,13 @@ expect {
|
|||||||
eof { exit [ lindex [wait] 3 ] }
|
eof { exit [ lindex [wait] 3 ] }
|
||||||
}
|
}
|
||||||
EOF`
|
EOF`
|
||||||
|
|
||||||
|
expect=`which expect`
|
||||||
|
if [ ! -x "$expect" ]; then
|
||||||
|
Test_Error "ERROR: Please install expect"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
expect -c "$exp_cmd"
|
expect -c "$exp_cmd"
|
||||||
ret=$?
|
ret=$?
|
||||||
rm -rf $tmpfile
|
rm -rf $tmpfile
|
||||||
@@ -120,6 +127,13 @@ expect {
|
|||||||
eof { exit [ lindex [wait] 3 ] }
|
eof { exit [ lindex [wait] 3 ] }
|
||||||
}
|
}
|
||||||
EOF`
|
EOF`
|
||||||
|
|
||||||
|
expect=`which expect`
|
||||||
|
if [ ! -x "$expect" ]; then
|
||||||
|
Test_Error "ERROR: Please install expect"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
expect -c "$exp_cmd"
|
expect -c "$exp_cmd"
|
||||||
ret=$?
|
ret=$?
|
||||||
rm -rf $tmpfile
|
rm -rf $tmpfile
|
||||||
|
|||||||
Reference in New Issue
Block a user