diff options
author | David Sterba <dsterba@suse.com> | 2018-03-23 16:34:30 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-30 22:15:55 +0200 |
commit | 3ccad2a6443fcae0fee2cd94132580d2d06268dd (patch) | |
tree | 71da5c37e46840e392eb69cd1d18fa48862a0523 /tests/mkfs-tests/014-rootdir-inline-extent/test.sh | |
parent | a855717a87a8da78b62148e8bf0a629695596097 (diff) |
btrfs-progs: tests: add shell quotes to mkfs test scripts
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/mkfs-tests/014-rootdir-inline-extent/test.sh')
-rwxr-xr-x | tests/mkfs-tests/014-rootdir-inline-extent/test.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mkfs-tests/014-rootdir-inline-extent/test.sh b/tests/mkfs-tests/014-rootdir-inline-extent/test.sh index b337e493..09a96004 100755 --- a/tests/mkfs-tests/014-rootdir-inline-extent/test.sh +++ b/tests/mkfs-tests/014-rootdir-inline-extent/test.sh @@ -21,7 +21,7 @@ create_file() test_mkfs_rootdir() { nodesize=$1 - run_check "$TOP/mkfs.btrfs" --nodesize $nodesize -f --rootdir "$tmp" \ + run_check "$TOP/mkfs.btrfs" --nodesize "$nodesize" -f --rootdir "$tmp" \ "$TEST_DEV" run_check $SUDO_HELPER "$TOP/btrfs" check "$TEST_DEV" } @@ -39,8 +39,8 @@ for i in 512 1024 2048 4096 8192 16384 32768; do done for nodesize in 4096 8192 16384 32768 65536; do - if [ $nodesize -ge $pagesize ]; then - test_mkfs_rootdir $nodesize + if [ "$nodesize" -ge "$pagesize" ]; then + test_mkfs_rootdir "$nodesize" fi done rm -rf -- "$tmp" |