btrfs-progs: tests: add shell quotes to mkfs test scripts
[platform/upstream/btrfs-progs.git] / tests / mkfs-tests / 008-sectorsize-nodesize-combination / test.sh
index 9cc2f9e..345d81d 100755 (executable)
@@ -19,13 +19,13 @@ do_test()
 {
        sectorsize=$1
        nodesize=$2
-       run_mayfail $TOP/mkfs.btrfs -f -O $features -n $nodesize -s $sectorsize \
-               $TEST_DEV
+       run_mayfail "$TOP/mkfs.btrfs" -f -O "$features" -n "$nodesize" -s "$sectorsize" \
+               "$TEST_DEV"
        ret=$?
-       if [ $ret == 0 ]; then
-               run_check $TOP/btrfs check $TEST_DEV
+       if [ "$ret" == 0 ]; then
+               run_check "$TOP/btrfs" check "$TEST_DEV"
        fi
-       return $ret
+       return "$ret"
 }
 
 # Invalid: Unaligned sectorsize and nodesize