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 | dcb174ce2e2c9be1eaad73757d0312246560ba3d (patch) | |
tree | b265e3f36d473878962751f820fc12d7a5a3bf6a /tests/misc-tests/024-inspect-internal-rootid/test.sh | |
parent | 3ccad2a6443fcae0fee2cd94132580d2d06268dd (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/024-inspect-internal-rootid/test.sh')
-rwxr-xr-x | tests/misc-tests/024-inspect-internal-rootid/test.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/misc-tests/024-inspect-internal-rootid/test.sh b/tests/misc-tests/024-inspect-internal-rootid/test.sh index 71e19044..ea0c6298 100755 --- a/tests/misc-tests/024-inspect-internal-rootid/test.sh +++ b/tests/misc-tests/024-inspect-internal-rootid/test.sh @@ -36,15 +36,15 @@ id6=$(run_check_stdout "$TOP/btrfs" inspect-internal rootid dir/file2) \ id7=$(run_check_stdout "$TOP/btrfs" inspect-internal rootid sub/file3) \ || { echo $id7; exit 1; } -if ! ([ $id1 -ne $id2 ] && [ $id1 -ne $id3 ] && [ $id2 -ne $id3 ]); then +if ! ([ "$id1" -ne "$id2" ] && [ "$id1" -ne "$id3" ] && [ "$id2" -ne "$id3" ]); then _fail "inspect-internal rootid: each subvolume must have different id" fi -if ! ([ $id1 -eq $id4 ] && [ $id1 -eq $id5 ] && [ $id1 -eq $id6 ]); then +if ! ([ "$id1" -eq "$id4" ] && [ "$id1" -eq "$id5" ] && [ "$id1" -eq "$id6" ]); then _fail "inspect-internal rootid: rootid mismatch found" fi -if ! ([ $id2 -eq $id7 ]); then +if ! ([ "$id2" -eq "$id7" ]); then _fail "inspect-internal rootid: rootid mismatch found" fi |