[oe-commits] Richard Purdie : scripts/qemuimage-testlib: Output a slightly better error if expect is missing
git at git.openembedded.org
git at git.openembedded.org
Thu Nov 10 11:36:39 UTC 2011
Module: openembedded-core.git
Branch: master
Commit: bfbbb420c0a6b315f73d3d5e463a518098ca6ef0
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=bfbbb420c0a6b315f73d3d5e463a518098ca6ef0
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Tue Nov 8 17:55:50 2011 +0000
scripts/qemuimage-testlib: Output a slightly better error if expect is missing
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/qemuimage-testlib | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib
old mode 100644
new mode 100755
index 6a1b900..d0d1b74
--- 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
More information about the Openembedded-commits
mailing list