]> wimlib.net Git - wimlib/blobdiff - tests/test-imagex-ntfs
Remove more trailing whitespace
[wimlib] / tests / test-imagex-ntfs
index 412ac20a10e3383e49d17c69788b7dd7ae6934e0..40c005cc9feccf943d2033d98454c9263e332c19 100755 (executable)
@@ -37,7 +37,9 @@ __do_mount() {
                options="$options,no_def_opts,silent"
        fi
        if ! ntfs-3g -o $options $1 $2; then
-               error "Could not mount NTFS volume \"$1\" on \"$2\".  Make sure ntfs-3g is installed."
+               error "Could not mount NTFS volume \"$1\" on \"$2\"!  Make sure ntfs-3g is "\
+                     "installed, and that you are either running the tests as root or have ntfs-3g "\
+                     "installed setuid root, so that we can mount a NTFS volume."
        fi
 }
 
@@ -48,7 +50,7 @@ do_mount() {
 
 do_mkntfs() {
        if ! mkntfs --force --fast $1 &> /dev/null; then
-               error "Could not create NTFS volume on \"$1\".  Make sure ntfs-3g / ntfsprogs are installed"
+               error "Could not create NTFS volume \"$1\"!  Make sure ntfsprogs are installed."
        fi
 }
 
@@ -73,7 +75,10 @@ cleanup() {
 error() {
        echo "****************************************************************"
        echo "                         Test failure                           "
-       echo $*
+       while [ $# -gt 0 ]; do
+               echo $1
+               shift
+       done
        echo "****************************************************************"
        exit 1
 }
@@ -194,7 +199,7 @@ do_test 'echo 1 > file;
         setfattr -n user.aa -v 1111 file;
         setfattr -n user.aaa -v 1111 file;
         setfattr -n user.aaaa -v 1111 file;'
-       
+
 msg "file with named data streams with same contents as other file"
 do_test 'echo -n > file;
         setfattr -n user.a -v 1111 file;
@@ -231,7 +236,7 @@ do_test 'touch file;
         touch file2;
         setfattr -n system.ntfs_acl -v 0s`cat $srcdir/tests/security_descriptor_1.base64` file
         setfattr -n system.ntfs_acl -v 0s`cat $srcdir/tests/security_descriptor_2.base64` file'
-       
+
 msg "files with different security descriptors and some with the same security descriptor"
 do_test 'touch file;
         touch file2;