[Bug 283812] sys/geom/class/eli/attach_test:attach_multiple_fails broken in FBSD 14.1

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 Jan 2025 09:11:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283812

--- Comment #2 from Haresh <hareshx.sankar.raj@intel.com> ---
Thanks for your response! Apologies for the typo confusion which included
ktls_test mention. Concern was mainly with the
sys/geom/class/eli/attach_test:attach_multiple_fails. We will check with the
change introduced by the commit shared and update the ticket.

git show 81da8e39f78956441a27eb6bb55ac16170a21a14
commit 81da8e39f78956441a27eb6bb55ac16170a21a14
Author: Mark Johnston <markj@FreeBSD.org>
Date:   Tue Oct 15 13:35:03 2024 +0000

    geli tests: Work around a missing MFC

    The test assumes commit 96950419f15510287080c557174e0d8409f06956, but
    that was never MFCed to stable branches, resulting in a broken test.

    This is a direct commit to stable/14.

diff --git a/tests/sys/geom/class/eli/attach_test.sh
b/tests/sys/geom/class/eli/attach_test.sh
index 8803fa9f1a40..e4aa3a6cd618 100644
--- a/tests/sys/geom/class/eli/attach_test.sh
+++ b/tests/sys/geom/class/eli/attach_test.sh
@@ -50,7 +50,7 @@ attach_multiple_fails_body()
        geli_test_setup

        sectors=1000
-       attach_md md -t malloc -s `expr $sectors + 1`
+       md=$(attach_md -t malloc -s `expr $sectors + 1`)
        atf_check dd if=/dev/random of=keyfile bs=512 count=16 status=none

        atf_check geli init -B none -P -K keyfile ${md}

-- 
You are receiving this mail because:
You are the assignee for the bug.