[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
Wed Nov 9 14:58:59 UTC 2011
Module: openembedded-core.git
Branch: master-next
Commit: f4d637df4b7ac7eed3a7bc1a95bc0442684494e7
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=f4d637df4b7ac7eed3a7bc1a95bc0442684494e7
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