提交 5e06ef74 编写于 作者: E Eric Blake

virt-aa-helper-test: avoid non-portable echo -n

* tests/virt-aa-helper-test (testme): Use printf instead.
上级 ad896a1c
...@@ -112,10 +112,10 @@ testme() { ...@@ -112,10 +112,10 @@ testme() {
fi fi
fi fi
echo -n " $outstr: " >$output printf %s " $outstr: " >$output
echo -n " '$extra_args $args" >$output printf %s " '$extra_args $args" >$output
if [ -n "$input" ]; then if [ -n "$input" ]; then
echo -n " < $input" >$output printf %s " < $input" >$output
fi fi
echo "': " >$output echo "': " >$output
set +e set +e
...@@ -131,7 +131,7 @@ testme() { ...@@ -131,7 +131,7 @@ testme() {
else else
echo "FAIL: exited with '$rc'" >$output echo "FAIL: exited with '$rc'" >$output
echo "FAIL: exited with '$rc'" echo "FAIL: exited with '$rc'"
echo -n " $outstr: " printf %s " $outstr: "
echo " '$extra_args $args': " echo " '$extra_args $args': "
errors=$(($errors + 1)) errors=$(($errors + 1))
#exit $rc #exit $rc
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册