diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-08 17:55:50 +0000 | 
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-10 11:35:31 +0000 | 
| commit | bfbbb420c0a6b315f73d3d5e463a518098ca6ef0 (patch) | |
| tree | 2542630b0fdd6a8fe5ede0a3c831b45807da8f64 /scripts/qemuimage-testlib | |
| parent | 07a2825c6f4ad3e5e3970cd1a89233bd795c68cf (diff) | |
| download | openembedded-core-bfbbb420c0a6b315f73d3d5e463a518098ca6ef0.tar.gz openembedded-core-bfbbb420c0a6b315f73d3d5e463a518098ca6ef0.tar.bz2 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>
Diffstat (limited to 'scripts/qemuimage-testlib')
| -rwxr-xr-x[-rw-r--r--] | scripts/qemuimage-testlib | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib index 6a1b9002a4..d0d1b74196 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 | 
