testsuite: uniformly use $ECHO with -n -e
This commit is contained in:
parent
94884eb486
commit
abe49fa54f
9 changed files with 691 additions and 690 deletions
|
@ -10,8 +10,8 @@ test "`id -u`" = 0 || {
|
|||
exit 0
|
||||
}
|
||||
|
||||
dd if=/dev/zero of=image1m count=1 bs=1M 2>/dev/null || exit 1
|
||||
mkfs.minix -v image1m >/dev/null 2>&1 || exit 1
|
||||
dd if=/dev/zero of=mount.image1m count=1 bs=1M 2>/dev/null || exit 1
|
||||
mkfs.minix -v mount.image1m >/dev/null 2>&1 || exit 1
|
||||
testdir=$PWD/testdir
|
||||
mkdir $testdir 2>/dev/null
|
||||
umount -d $testdir 2>/dev/null
|
||||
|
@ -21,7 +21,7 @@ umount -d $testdir 2>/dev/null
|
|||
# test can create a file "actual" instead of writing to stdout
|
||||
|
||||
testing "mount -o remount,mand" \
|
||||
"mount -o loop image1m $testdir "\
|
||||
"mount -o loop mount.image1m $testdir "\
|
||||
"&& grep -Fc $testdir </proc/mounts "\
|
||||
"&& mount -o remount,mand $testdir "\
|
||||
"&& grep -F $testdir </proc/mounts | grep -c '[, ]mand[, ]'" \
|
||||
|
@ -30,5 +30,6 @@ testing "mount -o remount,mand" \
|
|||
|
||||
umount -d $testdir
|
||||
rmdir $testdir
|
||||
rm mount.image1m
|
||||
|
||||
exit $FAILCOUNT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue