summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/qemuimage-testlib14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/qemuimage-testlib b/scripts/qemuimage-testlib
index 6a1b9002a4..d0d1b74196 100755
--- a/scripts/qemuimage-testlib
+++ b/scripts/qemuimage-testlib
@@ -96,6 +96,13 @@ expect {
96 eof { exit [ lindex [wait] 3 ] } 96 eof { exit [ lindex [wait] 3 ] }
97} 97}
98EOF` 98EOF`
99
100 expect=`which expect`
101 if [ ! -x "$expect" ]; then
102 Test_Error "ERROR: Please install expect"
103 return 1
104 fi
105
99 expect -c "$exp_cmd" 106 expect -c "$exp_cmd"
100 ret=$? 107 ret=$?
101 rm -rf $tmpfile 108 rm -rf $tmpfile
@@ -120,6 +127,13 @@ expect {
120 eof { exit [ lindex [wait] 3 ] } 127 eof { exit [ lindex [wait] 3 ] }
121} 128}
122EOF` 129EOF`
130
131 expect=`which expect`
132 if [ ! -x "$expect" ]; then
133 Test_Error "ERROR: Please install expect"
134 return 1
135 fi
136
123 expect -c "$exp_cmd" 137 expect -c "$exp_cmd"
124 ret=$? 138 ret=$?
125 rm -rf $tmpfile 139 rm -rf $tmpfile