summaryrefslogtreecommitdiff
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:35:31 +0000
commitbfbbb420c0a6b315f73d3d5e463a518098ca6ef0 (patch)
tree2542630b0fdd6a8fe5ede0a3c831b45807da8f64
parent07a2825c6f4ad3e5e3970cd1a89233bd795c68cf (diff)
downloadopenembedded-core-bfbbb420c0a6b315f73d3d5e463a518098ca6ef0.tar.gz
openembedded-core-bfbbb420c0a6b315f73d3d5e463a518098ca6ef0.tar.bz2
openembedded-core-bfbbb420c0a6b315f73d3d5e463a518098ca6ef0.tar.xz
openembedded-core-bfbbb420c0a6b315f73d3d5e463a518098ca6ef0.zip
scripts/qemuimage-testlib: Output a slightly better error if expect is missing
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x[-rw-r--r--]scripts/qemuimage-testlib14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib
index 6a1b9002a..d0d1b7419 100644..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