btrfs-progs: tests: add shell quotes to mkfs test scripts
[platform/upstream/btrfs-progs.git] / tests / mkfs-tests / 010-minimal-size / test.sh
index 582533c..0ebe099 100755 (executable)
@@ -14,12 +14,12 @@ do_test()
        # the minimal device size for the given option combination
        prepare_test_dev 1M
        output=$(run_mustfail_stdout "mkfs.btrfs for small image" \
-                "$TOP/mkfs.btrfs" -f $@ "$TEST_DEV")
+                "$TOP/mkfs.btrfs" -f "$@" "$TEST_DEV")
        good_size=$(echo "$output" | grep -oP "(?<=is )\d+")
 
        prepare_test_dev "$good_size"
        echo "Minimal device size is $good_size" >> "$RESULTS"
-       run_check $TOP/mkfs.btrfs -f $@ "$TEST_DEV"
+       run_check $TOP/mkfs.btrfs -f "$@" "$TEST_DEV"
        run_check_mount_test_dev
        run_check_umount_test_dev
 }