Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jul 2026 10:00:55 +0000
From:      Olivier Certner <olce@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: b68849a93253 - stable/14 - MAC/do: Tests: Quote the source directory
Message-ID:  <6a61e657.3cf49.3af8c6c2@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by olce:

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

commit b68849a932537d8130ef4f0b64c56ae2320cc777
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-05-22 14:21:39 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-07-23 09:59:09 +0000

    MAC/do: Tests: Quote the source directory
    
    In a standard test suite installation, this is not necessary, but be
    bullet-proof to custom ones, however improbable.
    
    Reviewed by:    bapt
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation
    Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/38
    
    (cherry picked from commit 33daea3f862d7fe996602756805a92a600356f94)
---
 tests/sys/mac/do/invalid_configs.sh | 2 +-
 tests/sys/mac/do/valid_configs.sh   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/sys/mac/do/invalid_configs.sh b/tests/sys/mac/do/invalid_configs.sh
index 848e2b5c9579..d1a9eb8c1e96 100644
--- a/tests/sys/mac/do/invalid_configs.sh
+++ b/tests/sys/mac/do/invalid_configs.sh
@@ -75,7 +75,7 @@ rules_wrong_separator_body()
 
 atf_init_test_cases()
 {
-    . $(atf_get_srcdir)/common.sh
+    . "$(atf_get_srcdir)"/common.sh
 
     atf_add_test_case rule_no_target_part
     atf_add_test_case rule_no_match_part
diff --git a/tests/sys/mac/do/valid_configs.sh b/tests/sys/mac/do/valid_configs.sh
index 44cfd62acc6e..fc1c9a370854 100644
--- a/tests/sys/mac/do/valid_configs.sh
+++ b/tests/sys/mac/do/valid_configs.sh
@@ -120,7 +120,7 @@ gid= 1001 >gid =5"
 
 atf_init_test_cases()
 {
-    . $(atf_get_srcdir)/common.sh
+    . "$(atf_get_srcdir)"/common.sh
 
     atf_add_test_case rule_uid_to_any
     atf_add_test_case rule_uid_to_uid


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a61e657.3cf49.3af8c6c2>