mirror of https://gitee.com/openkylin/libvirt.git
schematestutils.sh: improve shell portability: avoid "echo -e"
* tests/schematestutils.sh: Use printf rather than echo -e.
This commit is contained in:
parent
50bf3101a3
commit
ad896a1cdd
|
@ -22,7 +22,7 @@ do
|
||||||
|
|
||||||
test_result $n $(basename $(dirname $xml))"/"$(basename $xml) $ret
|
test_result $n $(basename $(dirname $xml))"/"$(basename $xml) $ret
|
||||||
if test "$verbose" = "1" && test $ret != 0 ; then
|
if test "$verbose" = "1" && test $ret != 0 ; then
|
||||||
echo -e "$cmd\n$result"
|
printf '%s\n' "$cmd" "$result"
|
||||||
fi
|
fi
|
||||||
if test "$ret" != 0 ; then
|
if test "$ret" != 0 ; then
|
||||||
f=`expr $f + 1`
|
f=`expr $f + 1`
|
||||||
|
|
Loading…
Reference in New Issue