git: 683853a92477 - main - sendfile tests: Mount filesystems under the test workdir
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Mar 2023 14:51:06 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=683853a92477a18f19b29d6bd8dd71ebe5553f89
commit 683853a92477a18f19b29d6bd8dd71ebe5553f89
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-03-12 18:50:14 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-03-13 14:45:35 +0000
sendfile tests: Mount filesystems under the test workdir
Otherwise they can't be run in parallel as they share a mount point.
MFC after: 1 week
---
tests/sys/kern/sendfile_test.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/sys/kern/sendfile_test.sh b/tests/sys/kern/sendfile_test.sh
index 11bd03705f53..3c700beeb7d5 100755
--- a/tests/sys/kern/sendfile_test.sh
+++ b/tests/sys/kern/sendfile_test.sh
@@ -37,7 +37,7 @@
#
MD_DEVS="md.devs"
-MNT=/mnt
+MNT=mnt
FILE=$MNT/file
HELPER="$(atf_get_srcdir)/sendfile_helper"
BSIZE=4096
@@ -134,10 +134,11 @@ common_body_setup()
{
us=$1
+ atf_check mkdir $MNT
atf_check -o ignore -e ignore newfs -b $BSIZE -U -j /dev/${us}
atf_check mount /dev/${us} $MNT
atf_check -e ignore dd if=/dev/zero of=$FILE bs=1m count=1
- atf_check umount /mnt
+ atf_check umount $MNT
load_gnop
atf_check gnop create /dev/${us}