summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-08 17:55:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-10 11:51:17 +0000
commita3b987a2f72bf9406bef577523399b845b7ee970 (patch)
treee653bb90616a0505c67388897cacd5594551de00 /scripts
parentb6bc04dfeb98971999218bb2987dc93e52979862 (diff)
downloadast2050-yocto-poky-a3b987a2f72bf9406bef577523399b845b7ee970.zip
ast2050-yocto-poky-a3b987a2f72bf9406bef577523399b845b7ee970.tar.gz
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/qemuimage-testlib14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib
index 6a1b900..d0d1b74 100755
--- a/scripts/qemuimage-testlib
+++ b/scripts/qemuimage-testlib
@@ -96,6 +96,13 @@ expect {
eof { exit [ lindex [wait] 3 ] }
}
EOF`
+
+ expect=`which expect`
+ if [ ! -x "$expect" ]; then
+ Test_Error "ERROR: Please install expect"
+ return 1
+ fi
+
expect -c "$exp_cmd"
ret=$?
rm -rf $tmpfile
@@ -120,6 +127,13 @@ expect {
eof { exit [ lindex [wait] 3 ] }
}
EOF`
+
+ expect=`which expect`
+ if [ ! -x "$expect" ]; then
+ Test_Error "ERROR: Please install expect"
+ return 1
+ fi
+
expect -c "$exp_cmd"
ret=$?
rm -rf $tmpfile
OpenPOWER on IntegriCloud