59e3389655
We actually do not run the tests with different backend at the same time, so there's no need for scenarios. Change-Id: I2cc7aaee04834d1949bdb3c547f0d5b893d13aef
25 lines
441 B
Bash
25 lines
441 B
Bash
function clean_exit(){
|
|
local error_code="$?"
|
|
rm -rf "$1"
|
|
kill $(jobs -p)
|
|
return $error_code
|
|
}
|
|
|
|
check_for_cmd () {
|
|
if ! which "$1" >/dev/null 2>&1
|
|
then
|
|
echo "Could not find $1 command" 1>&2
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
wait_for_line () {
|
|
while read line
|
|
do
|
|
echo "$line" | grep -q "$1" && break
|
|
done < "$2"
|
|
# Read the fifo for ever otherwise process would block
|
|
cat "$2" >/dev/null &
|
|
}
|
|
|