]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virt-aa-helper-test: avoid non-portable echo -n
authorEric Blake <eblake@redhat.com>
Wed, 14 Apr 2010 15:51:45 +0000 (09:51 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 14 Apr 2010 17:17:18 +0000 (11:17 -0600)
* tests/virt-aa-helper-test (testme): Use printf instead.

tests/virt-aa-helper-test

index 3a2e74b1a7b57048d47a4a7e02858099589997f7..ada89f4d3522a537ecc2152304b85c717d92cf7d 100755 (executable)
@@ -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