@@ -271,16 +271,16 @@ do_migration ()
qmp ${src_qmp} '"migrate", "arguments": { "uri": "unix:'${dst_incoming}'" }' > ${src_qmpout}
# Wait for the migration to complete
- migstatus=`qmp ${src_qmp} '"query-migrate"' | grep return`
+ migstatus=$(qmp ${src_qmp} '"query-migrate"' | grep return)
while ! grep -q '"completed"' <<<"$migstatus" ; do
sleep 0.1
- if ! migstatus=`qmp ${src_qmp} '"query-migrate"'`; then
+ if ! migstatus=$(qmp ${src_qmp} '"query-migrate"'); then
echo "ERROR: Querying migration state failed." >&2
echo > ${dst_infifo}
qmp ${dst_qmp} '"quit"'> ${dst_qmpout} 2>/dev/null
return 2
fi
- migstatus=`grep return <<<"$migstatus"`
+ migstatus=$(grep return <<<"$migstatus")
if grep -q '"failed"' <<<"$migstatus"; then
echo "ERROR: Migration failed." >&2
echo > ${dst_infifo}
@@ -61,9 +61,9 @@ function print_result()
local reason="$4"
if [ -z "$reason" ]; then
- echo "`$status` $testname $summary"
+ echo "$($status) $testname $summary"
else
- echo "`$status` $testname ($reason)"
+ echo "$($status) $testname ($reason)"
fi
}