Fix mount.test command string quoting

Use "" instead of '' to quote command as the command contains expandable
variables.

Change-Id: Iaa8825e56243b369199588cbf6e47a1aba985804
This commit is contained in:
Yo Chiang 2021-02-01 20:33:54 +08:00 committed by Rob Landley
parent 5f5f97f215
commit 086356b88e

View File

@ -47,8 +47,8 @@ testing "-w $tmp_b_fs /mnt (write_only mode)" \
sleep 1 && umount /mnt && ! test -e /mnt/testDir" "" "" ""
reCreateTmpFs
testing "-rw $tmp_b_fs /mnt (read_write mode)" \
'mount -rw $tmp_b_fs /mnt >/dev/null && mkdir /mnt/testDir && \
sleep 1 && ! test -e /mnt/testDir && umount /mnt' "" "" ""
"mount -rw $tmp_b_fs /mnt >/dev/null && mkdir /mnt/testDir && \
sleep 1 && ! test -e /mnt/testDir && umount /mnt" "" "" ""
reCreateTmpFs
testing "$tmp_b_fs /mnt -t fs_type" \
"mount $tmp_b_fs /mnt -t $tmp_b_fs_type >/dev/null 2>&1 &&