summaryrefslogtreecommitdiff
path: root/tests/misc-tests/023-device-usage-with-missing-device/test.sh
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-03-23 16:34:30 +0100
committerDavid Sterba <dsterba@suse.com>2018-03-30 22:15:55 +0200
commitdcb174ce2e2c9be1eaad73757d0312246560ba3d (patch)
treeb265e3f36d473878962751f820fc12d7a5a3bf6a /tests/misc-tests/023-device-usage-with-missing-device/test.sh
parent3ccad2a6443fcae0fee2cd94132580d2d06268dd (diff)
btrfs-progs: tests: add shell quotes to misc test scripts
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/misc-tests/023-device-usage-with-missing-device/test.sh')
-rwxr-xr-xtests/misc-tests/023-device-usage-with-missing-device/test.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/misc-tests/023-device-usage-with-missing-device/test.sh b/tests/misc-tests/023-device-usage-with-missing-device/test.sh
index 05894cfe..57b500c9 100755
--- a/tests/misc-tests/023-device-usage-with-missing-device/test.sh
+++ b/tests/misc-tests/023-device-usage-with-missing-device/test.sh
@@ -12,7 +12,7 @@ setup_root_helper
test_run()
{
# empty filesystem, with enough redundancy so degraded mount works
- run_check $SUDO_HELPER "$TOP/mkfs.btrfs" -f -d raid1 -m raid1 $dev1 $dev2
+ run_check $SUDO_HELPER "$TOP/mkfs.btrfs" -f -d raid1 -m raid1 "$dev1" "$dev2"
TEST_DEV="$dev1"
run_check_mount_test_dev
@@ -21,8 +21,8 @@ test_run()
grep -q "slack.*16\\.00EiB" && _fail
run_check_umount_test_dev
- run_mayfail wipefs -a $dev2
- run_check $SUDO_HELPER losetup -d $dev2
+ run_mayfail wipefs -a "$dev2"
+ run_check $SUDO_HELPER losetup -d "$dev2"
unset loopdevs[2]
run_check_mount_test_dev -o degraded,ro