Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 2023 13:33:47 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: fbe570ccc0d7 - stable/13 - sendfile tests: Mount filesystems under the test workdir
Message-ID:  <202303201333.32KDXlcS073677@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=fbe570ccc0d739b8da2804468070edd1247b9bb2

commit fbe570ccc0d739b8da2804468070edd1247b9bb2
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-03-12 18:50:14 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-03-20 12:58:23 +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
    
    (cherry picked from commit 683853a92477a18f19b29d6bd8dd71ebe5553f89)
---
 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 2efda9310396..0bc575a4aaf4 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
@@ -122,10 +122,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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303201333.32KDXlcS073677>