Module Name:    src
Committed By:   martin
Date:           Tue Jan 30 16:57:32 UTC 2024

Modified Files:
        src/tests/usr.bin/mtree: t_sets.sh

Log Message:
Skip the dtb set if the /boot partition is not mounted.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/mtree/t_sets.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/usr.bin/mtree/t_sets.sh
diff -u src/tests/usr.bin/mtree/t_sets.sh:1.3 src/tests/usr.bin/mtree/t_sets.sh:1.4
--- src/tests/usr.bin/mtree/t_sets.sh:1.3	Sun Jan 28 19:08:06 2024
+++ src/tests/usr.bin/mtree/t_sets.sh	Tue Jan 30 16:57:32 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: t_sets.sh,v 1.3 2024/01/28 19:08:06 riastradh Exp $
+#	$NetBSD: t_sets.sh,v 1.4 2024/01/30 16:57:32 martin Exp $
 #
 # Copyright (c) 2024 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -77,6 +77,13 @@ atf_init_test_cases()
 		base)	# Handled above already.
 			continue
 			;;
+		dtb)
+			# contents of this set go to the boot partition,
+			# which may not be mounted during normal operation
+			if [ ! -d /boot/dtb ]; then
+				continue;
+			fi
+			;;
 		etc|xetc)
 			# etc and xetc have files that may be modified
 			# on installation, and also contain log files,

Reply via email to