From: Richard Purdie <richard.pur...@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> --- scripts/qemuimage-testlib | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib index 6a1b900..d0d1b74 100644 --- 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 -- 1.7.6.4 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core