diff options
author | 2010-04-14 09:51:45 -0600 | |
---|---|---|
committer | 2010-04-14 11:17:18 -0600 | |
commit | 5e06ef743a9484eff19c22485e0f0290c94cb3f0 (patch) | |
tree | 863c8236e18b2964455169909934062c76c7687c /tests/virt-aa-helper-test | |
parent | schematestutils.sh: improve shell portability: avoid "echo -e" (diff) | |
download | libvirt-5e06ef743a9484eff19c22485e0f0290c94cb3f0.tar.gz libvirt-5e06ef743a9484eff19c22485e0f0290c94cb3f0.tar.bz2 libvirt-5e06ef743a9484eff19c22485e0f0290c94cb3f0.zip |
virt-aa-helper-test: avoid non-portable echo -n
* tests/virt-aa-helper-test (testme): Use printf instead.
Diffstat (limited to 'tests/virt-aa-helper-test')
-rwxr-xr-x | tests/virt-aa-helper-test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/virt-aa-helper-test b/tests/virt-aa-helper-test index 3a2e74b1a..ada89f4d3 100755 --- a/tests/virt-aa-helper-test +++ b/tests/virt-aa-helper-test @@ -112,10 +112,10 @@ testme() { fi fi - echo -n " $outstr: " >$output - echo -n " '$extra_args $args" >$output + printf %s " $outstr: " >$output + printf %s " '$extra_args $args" >$output if [ -n "$input" ]; then - echo -n " < $input" >$output + printf %s " < $input" >$output fi echo "': " >$output set +e @@ -131,7 +131,7 @@ testme() { else echo "FAIL: exited with '$rc'" >$output echo "FAIL: exited with '$rc'" - echo -n " $outstr: " + printf %s " $outstr: " echo " '$extra_args $args': " errors=$(($errors + 1)) #exit $rc |